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

Unified Diff: chrome/browser/sync/profile_sync_service_harness.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
Index: chrome/browser/sync/profile_sync_service_harness.cc
diff --git a/chrome/browser/sync/profile_sync_service_harness.cc b/chrome/browser/sync/profile_sync_service_harness.cc
index 90dc1803863b10dbcaac444aaed236d54eef5957..3d42e9158b6f255e4e8102ad7c812f8fef3cc7b9 100644
--- a/chrome/browser/sync/profile_sync_service_harness.cc
+++ b/chrome/browser/sync/profile_sync_service_harness.cc
@@ -292,7 +292,7 @@ void ProfileSyncServiceHarness::SignalStateCompleteWithNextState(
void ProfileSyncServiceHarness::SignalStateComplete() {
if (waiting_for_status_change_)
- MessageLoop::current()->QuitWhenIdle();
+ base::MessageLoop::current()->QuitWhenIdle();
}
bool ProfileSyncServiceHarness::RunStateChangeMachine() {
@@ -754,8 +754,8 @@ bool ProfileSyncServiceHarness::AwaitStatusChangeWithTimeout(
// Set the flag to tell SignalStateComplete() that it's OK to quit out of
// the MessageLoop if we hit a state transition.
waiting_for_status_change_ = true;
- MessageLoop* loop = MessageLoop::current();
- MessageLoop::ScopedNestableTaskAllower allow(loop);
+ base::MessageLoop* loop = base::MessageLoop::current();
+ base::MessageLoop::ScopedNestableTaskAllower allow(loop);
loop->PostDelayedTask(
FROM_HERE,
base::Bind(&StateChangeTimeoutEvent::Callback,

Powered by Google App Engine
This is Rietveld 408576698