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. |