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

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: 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/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 2bed2ae65092728e2ad5ce3cae9af82dadfb1006..e65c4bd03bf8a18b2180545ba39acf52bdae3e8b 100644
--- a/chrome/browser/sync/glue/session_model_associator.cc
+++ b/chrome/browser/sync/glue/session_model_associator.cc
@@ -1120,10 +1120,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();
}
}
@@ -1136,7 +1136,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()),
« no previous file with comments | « chrome/browser/sync/glue/password_model_associator.cc ('k') | chrome/browser/sync/glue/session_model_associator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698