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

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: Created 7 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
Index: chrome/browser/metrics/metrics_service.cc
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index 310b3cdaabefce7ff31bf5dbb76aee1a3ac30b85..796bcbfe6e11ecfd9c2521c58e0d363ab93e8f86 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -379,7 +379,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:
@@ -954,7 +954,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
@@ -1064,7 +1064,8 @@ 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));
@@ -1104,8 +1105,8 @@ void MetricsService::OpenNewLog() {
BrowserThread::FILE,
FROM_HERE,
base::Bind(&MetricsService::InitTaskGetHardwareClass,
- self_ptr_factory_.GetWeakPtr(),
- MessageLoop::current()->message_loop_proxy()),
+ self_ptr_factory_.GetWeakPtr(),
+ base::MessageLoop::current()->message_loop_proxy()),
base::TimeDelta::FromSeconds(kInitializationDelaySeconds));
}
}
@@ -1258,7 +1259,8 @@ 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));
}

Powered by Google App Engine
This is Rietveld 408576698