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

Unified Diff: chrome/browser/metrics/metrics_reporting_scheduler.h

Issue 8536054: Migrate several instances of NewRunnableMethod to base::Bind in browser/metrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
Index: chrome/browser/metrics/metrics_reporting_scheduler.h
diff --git a/chrome/browser/metrics/metrics_reporting_scheduler.h b/chrome/browser/metrics/metrics_reporting_scheduler.h
index 639263422cf0d569f722faa44c408eed65b913c8..7040bbb2868e02f370394ec76d579c2f45761e79 100644
--- a/chrome/browser/metrics/metrics_reporting_scheduler.h
+++ b/chrome/browser/metrics/metrics_reporting_scheduler.h
@@ -8,7 +8,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
-#include "base/task.h"
+#include "base/memory/weak_ptr.h"
#include "base/time.h"
// Scheduler task to drive a MetricsService object's uploading.
@@ -46,7 +46,7 @@ class MetricsReportingScheduler {
// The MetricsService method to call when uploading should happen.
base::Closure upload_callback_;
- ScopedRunnableMethodFactory<MetricsReportingScheduler> upload_timer_factory_;
+ base::WeakPtrFactory<MetricsReportingScheduler> weak_ptr_factory_;
// The interval between being told an upload is done and starting the next
// upload.
« no previous file with comments | « chrome/browser/metrics/histogram_synchronizer.cc ('k') | chrome/browser/metrics/metrics_reporting_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698