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

Unified Diff: chrome/browser/sync/glue/typed_url_change_processor.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/typed_url_change_processor.cc
diff --git a/chrome/browser/sync/glue/typed_url_change_processor.cc b/chrome/browser/sync/glue/typed_url_change_processor.cc
index 6281bbb0043abdff26d82b63c5bf045cb2074058..5ac4df54619353c73e4b0da29b106508ebeda5b0 100644
--- a/chrome/browser/sync/glue/typed_url_change_processor.cc
+++ b/chrome/browser/sync/glue/typed_url_change_processor.cc
@@ -43,7 +43,7 @@ TypedUrlChangeProcessor::TypedUrlChangeProcessor(
profile_(profile),
model_associator_(model_associator),
history_backend_(history_backend),
- expected_loop_(MessageLoop::current()) {
+ expected_loop_(base::MessageLoop::current()) {
DCHECK(model_associator);
DCHECK(history_backend);
DCHECK(error_handler);
@@ -55,14 +55,14 @@ TypedUrlChangeProcessor::TypedUrlChangeProcessor(
}
TypedUrlChangeProcessor::~TypedUrlChangeProcessor() {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
}
void TypedUrlChangeProcessor::Observe(
int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
DVLOG(1) << "Observed typed_url change.";
if (type == chrome::NOTIFICATION_HISTORY_URLS_MODIFIED) {
@@ -239,7 +239,7 @@ void TypedUrlChangeProcessor::ApplyChangesFromSyncModel(
const syncer::BaseTransaction* trans,
int64 model_version,
const syncer::ImmutableChangeRecordList& changes) {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
syncer::ReadNode typed_url_root(trans);
if (typed_url_root.InitByTagLookup(kTypedUrlTag) !=
@@ -295,7 +295,7 @@ void TypedUrlChangeProcessor::ApplyChangesFromSyncModel(
}
void TypedUrlChangeProcessor::CommitChangesFromSyncModel() {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
// Make sure we stop listening for changes while we're modifying the backend,
// so we don't try to re-apply these changes to the sync DB.
@@ -318,13 +318,13 @@ void TypedUrlChangeProcessor::CommitChangesFromSyncModel() {
}
void TypedUrlChangeProcessor::StartImpl(Profile* profile) {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
DCHECK_EQ(profile, profile_);
StartObserving();
}
void TypedUrlChangeProcessor::StartObserving() {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
DCHECK(profile_);
notification_registrar_.Add(
this, chrome::NOTIFICATION_HISTORY_URLS_MODIFIED,
@@ -338,7 +338,7 @@ void TypedUrlChangeProcessor::StartObserving() {
}
void TypedUrlChangeProcessor::StopObserving() {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
DCHECK(profile_);
notification_registrar_.Remove(
this, chrome::NOTIFICATION_HISTORY_URLS_MODIFIED,
« no previous file with comments | « chrome/browser/sync/glue/synced_device_tracker_unittest.cc ('k') | chrome/browser/sync/glue/typed_url_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698