diff options
author | khushalsagar <khushalsagar@chromium.org> | 2015-12-15 23:04:20 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-16 07:06:00 +0000 |
commit | 0f081c459a326c76da497645ae97c4d7d7bfd750 (patch) | |
tree | b29464b2d91b34c04679ac32131625a15f4b198c /cc/base | |
parent | 91d55c621307c578c233e3a07d896ce763abbae2 (diff) | |
download | chromium_src-0f081c459a326c76da497645ae97c4d7d7bfd750.zip chromium_src-0f081c459a326c76da497645ae97c4d7d7bfd750.tar.gz chromium_src-0f081c459a326c76da497645ae97c4d7d7bfd750.tar.bz2 |
cc: Fix error in smoothness_priority_expiration_notifier for ProxyImpl
The error was introduced by https://codereview.chromium.org/1417053005/
where using TimeDelta::FromSeconds for a double value caused the
DelayedUniqueNotifier to be initialized with zero delay.
This also fixes the flakiness for BenchmarkSmokeTest.thread_times on
Win7 bots, caused by an increase in the number of trace events from the
DelayedUniqueNotifier running with zero delay.
BUG=568120, 569658
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1527893002
Cr-Commit-Position: refs/heads/master@{#365492}
Diffstat (limited to 'cc/base')
-rw-r--r-- | cc/base/delayed_unique_notifier.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/base/delayed_unique_notifier.h b/cc/base/delayed_unique_notifier.h index 02051be..0e461fe 100644 --- a/cc/base/delayed_unique_notifier.h +++ b/cc/base/delayed_unique_notifier.h @@ -45,6 +45,8 @@ class CC_EXPORT DelayedUniqueNotifier { // Returns true if a notification is currently scheduled to run. bool HasPendingNotification() const; + base::TimeDelta delay() const { return delay_; } + protected: // Virtual for testing. virtual base::TimeTicks Now() const; |