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

Unified Diff: chrome/browser/sync/glue/sync_backend_registrar.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/sync_backend_registrar.cc
diff --git a/chrome/browser/sync/glue/sync_backend_registrar.cc b/chrome/browser/sync/glue/sync_backend_registrar.cc
index 92a517bd03c7deb0bb954c66ad57edcb020b4b60..d8b2bcf87117398056d9609aacb1826e29354263 100644
--- a/chrome/browser/sync/glue/sync_backend_registrar.cc
+++ b/chrome/browser/sync/glue/sync_backend_registrar.cc
@@ -53,14 +53,14 @@ bool IsOnThreadForGroup(syncer::ModelType type, syncer::ModelSafeGroup group) {
} // namespace
-SyncBackendRegistrar::SyncBackendRegistrar(
- const std::string& name, Profile* profile,
- MessageLoop* sync_loop) :
- name_(name),
- profile_(profile),
- sync_loop_(sync_loop),
- ui_worker_(new UIModelWorker()),
- stopped_on_ui_thread_(false) {
+SyncBackendRegistrar::SyncBackendRegistrar(const std::string& name,
+ Profile* profile,
+ base::MessageLoop* sync_loop)
+ : name_(name),
+ profile_(profile),
+ sync_loop_(sync_loop),
+ ui_worker_(new UIModelWorker()),
+ stopped_on_ui_thread_(false) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
CHECK(profile_);
DCHECK(sync_loop_);
@@ -175,7 +175,7 @@ void SyncBackendRegistrar::StopOnUIThread() {
}
void SyncBackendRegistrar::OnSyncerShutdownComplete() {
- DCHECK_EQ(MessageLoop::current(), sync_loop_);
+ DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
ui_worker_->OnSyncerShutdownComplete();
}

Powered by Google App Engine
This is Rietveld 408576698