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

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

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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 | « chrome/browser/metrics/metrics_log_unittest.cc ('k') | chrome/browser/metrics/metrics_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_service.cc
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index 213a288c6d124cfa6ecaf5d56c90fdaedf90b7e3..db2f67fb5b83101905b5c1ae25b1e4e580f40899 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -380,7 +380,7 @@ class MetricsMemoryDetails : public MemoryDetails {
: callback_(callback) {}
virtual void OnDetailsAvailable() OVERRIDE {
- MessageLoop::current()->PostTask(FROM_HERE, callback_);
+ base::MessageLoop::current()->PostTask(FROM_HERE, callback_);
}
private:
@@ -960,7 +960,7 @@ void MetricsService::OnInitTaskGotPluginInfo(
FROM_HERE,
base::Bind(&MetricsService::InitTaskGetGoogleUpdateData,
self_ptr_factory_.GetWeakPtr(),
- MessageLoop::current()->message_loop_proxy()));
+ base::MessageLoop::current()->message_loop_proxy()));
}
// static
@@ -1071,7 +1071,7 @@ std::string MetricsService::GenerateClientID() {
void MetricsService::ScheduleNextStateSave() {
state_saver_factory_.InvalidateWeakPtrs();
- MessageLoop::current()->PostDelayedTask(FROM_HERE,
+ base::MessageLoop::current()->PostDelayedTask(FROM_HERE,
base::Bind(&MetricsService::SaveLocalState,
state_saver_factory_.GetWeakPtr()),
base::TimeDelta::FromMinutes(kSaveStateIntervalMinutes));
@@ -1112,7 +1112,7 @@ void MetricsService::OpenNewLog() {
FROM_HERE,
base::Bind(&MetricsService::InitTaskGetHardwareClass,
self_ptr_factory_.GetWeakPtr(),
- MessageLoop::current()->message_loop_proxy()),
+ base::MessageLoop::current()->message_loop_proxy()),
base::TimeDelta::FromSeconds(kInitializationDelaySeconds));
}
}
@@ -1263,7 +1263,7 @@ void MetricsService::OnMemoryDetailCollectionDone() {
// child processes. Wait time specifies how long to wait before absolutely
// calling us back on the task.
content::FetchHistogramsAsynchronously(
- MessageLoop::current(), callback,
+ base::MessageLoop::current(), callback,
base::TimeDelta::FromMilliseconds(kMaxHistogramGatheringWaitDuration));
}
« no previous file with comments | « chrome/browser/metrics/metrics_log_unittest.cc ('k') | chrome/browser/metrics/metrics_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698