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

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

Issue 8603013: base::Bind() conversion for MetricsService. (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_service.h
diff --git a/chrome/browser/metrics/metrics_service.h b/chrome/browser/metrics/metrics_service.h
index 359b09f6b4d2a2205f53b19b10d479b1d51a6edc..96a77edc272504129346d0fa1f9037e8f86c3aa3 100644
--- a/chrome/browser/metrics/metrics_service.h
+++ b/chrome/browser/metrics/metrics_service.h
@@ -16,6 +16,7 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "base/process_util.h"
#include "chrome/browser/io_thread.h"
#include "chrome/common/metrics_helpers.h"
@@ -368,8 +369,8 @@ class MetricsService : public content::NotificationObserver,
struct ChildProcessStats;
std::map<string16, ChildProcessStats> child_process_stats_buffer_;
- ScopedRunnableMethodFactory<MetricsService> log_sender_factory_;
- ScopedRunnableMethodFactory<MetricsService> state_saver_factory_;
+ base::WeakPtrFactory<MetricsService> log_sender_weak_factory_;
+ base::WeakPtrFactory<MetricsService> state_saver_weak_factory_;
// Dictionary containing all the profile specific metrics. This is set
// at creation time from the prefs.

Powered by Google App Engine
This is Rietveld 408576698