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

Unified Diff: chrome/browser/sync/glue/session_model_associator.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/sync/glue/session_model_associator.cc
diff --git a/chrome/browser/sync/glue/session_model_associator.cc b/chrome/browser/sync/glue/session_model_associator.cc
index 92b90999e98c6674bffc85fb79314099ecb36afd..28bcbe5ee32669b6b484e57eb23fd788fef9c4b6 100644
--- a/chrome/browser/sync/glue/session_model_associator.cc
+++ b/chrome/browser/sync/glue/session_model_associator.cc
@@ -1134,10 +1134,10 @@ bool SessionModelAssociator::ShouldSyncTab(const SyncedTabDelegate& tab) const {
void SessionModelAssociator::QuitLoopForSubtleTesting() {
if (waiting_for_change_) {
- DVLOG(1) << "Quitting MessageLoop for test.";
+ DVLOG(1) << "Quitting base::MessageLoop for test.";
waiting_for_change_ = false;
test_weak_factory_.InvalidateWeakPtrs();
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
}
@@ -1150,7 +1150,7 @@ void SessionModelAssociator::BlockUntilLocalChangeForTest(
if (test_weak_factory_.HasWeakPtrs())
return;
waiting_for_change_ = true;
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&SessionModelAssociator::QuitLoopForSubtleTesting,
test_weak_factory_.GetWeakPtr()),

Powered by Google App Engine
This is Rietveld 408576698