Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Unified Diff: components/drive/file_write_watcher.cc

Issue 2837863004: Use base::OneShotTimer instead of base::Timer(false, false)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/domain_reliability/util.cc ('k') | components/error_page/renderer/net_error_helper_core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/file_write_watcher.cc
diff --git a/components/drive/file_write_watcher.cc b/components/drive/file_write_watcher.cc
index 9c813298fe12f0b09392f6c9abfbf23969c5d2d5..4e8e16120f19d12fac14eed4d8016ea188a44351 100644
--- a/components/drive/file_write_watcher.cc
+++ b/components/drive/file_write_watcher.cc
@@ -63,12 +63,10 @@ class FileWriteWatcher::FileWriteWatcherImpl {
struct PathWatchInfo {
std::vector<base::Closure> on_write_callbacks;
base::FilePathWatcher watcher;
- base::Timer timer;
+ base::OneShotTimer timer;
explicit PathWatchInfo(const base::Closure& on_write_callback)
- : on_write_callbacks(1, on_write_callback),
- timer(false /* retain_closure_on_reset */, false /* is_repeating */) {
- }
+ : on_write_callbacks(1, on_write_callback) {}
};
base::TimeDelta delay_;
« no previous file with comments | « components/domain_reliability/util.cc ('k') | components/error_page/renderer/net_error_helper_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698