Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/ui/events/x/events_x_utils.cc b/ui/events/x/events_x_utils.cc
- index 8dec888198a3..9409912d4a3c 100644
- --- a/ui/events/x/events_x_utils.cc
- +++ b/ui/events/x/events_x_utils.cc
- @@ -30,18 +30,20 @@ namespace {
- ui::TimestampServer* g_timestamp_server = nullptr;
- bool g_use_fixed_time_for_testing = false;
- -// Clamps a TimeDelta to be within [-30 seconds, 30 seconds].
- +// Clamps a TimeDelta to be within [0 seconds, 60 seconds].
- base::TimeDelta ClampDeltaFromExternalSource(const base::TimeDelta& delta) {
- // Ignore pathologically long deltas. External source is probably having
- // issues.
- constexpr base::TimeDelta pathologically_long_duration =
- - base::TimeDelta::FromSeconds(30);
- + base::TimeDelta::FromSeconds(60);
- if (delta > pathologically_long_duration)
- return base::TimeDelta();
- // Ignore negative deltas. External source is probably having issues.
- - if (delta < -pathologically_long_duration)
- + if (delta < base::TimeDelta())
- return base::TimeDelta();
- + // if (delta < -pathologically_long_duration)
- + // return base::TimeDelta();
- return delta;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement