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

Unified Diff: chrome/browser/sync/glue/password_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/password_change_processor.cc
diff --git a/chrome/browser/sync/glue/password_change_processor.cc b/chrome/browser/sync/glue/password_change_processor.cc
index 2ebe5c147ad730a317bef8fbe1ae006b7751bd6b..23c7452829228d45ce72d98341b26603af6efd5f 100644
--- a/chrome/browser/sync/glue/password_change_processor.cc
+++ b/chrome/browser/sync/glue/password_change_processor.cc
@@ -36,7 +36,7 @@ PasswordChangeProcessor::PasswordChangeProcessor(
: ChangeProcessor(error_handler),
model_associator_(model_associator),
password_store_(password_store),
- expected_loop_(MessageLoop::current()) {
+ expected_loop_(base::MessageLoop::current()) {
DCHECK(model_associator);
DCHECK(error_handler);
#if defined(OS_MACOSX)
@@ -47,14 +47,14 @@ PasswordChangeProcessor::PasswordChangeProcessor(
}
PasswordChangeProcessor::~PasswordChangeProcessor() {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
}
void PasswordChangeProcessor::Observe(
int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
DCHECK(chrome::NOTIFICATION_LOGINS_CHANGED == type);
syncer::WriteTransaction trans(FROM_HERE, share_handle());
@@ -162,7 +162,7 @@ void PasswordChangeProcessor::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 password_root(trans);
if (password_root.InitByTagLookup(kPasswordTag) !=
@@ -220,7 +220,7 @@ void PasswordChangeProcessor::ApplyChangesFromSyncModel(
}
void PasswordChangeProcessor::CommitChangesFromSyncModel() {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
ScopedStopObserving<PasswordChangeProcessor> stop_observing(this);
syncer::SyncError error = model_associator_->WriteToPasswordStore(
@@ -239,19 +239,19 @@ void PasswordChangeProcessor::CommitChangesFromSyncModel() {
}
void PasswordChangeProcessor::StartImpl(Profile* profile) {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
StartObserving();
}
void PasswordChangeProcessor::StartObserving() {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
notification_registrar_.Add(this,
chrome::NOTIFICATION_LOGINS_CHANGED,
content::Source<PasswordStore>(password_store_));
}
void PasswordChangeProcessor::StopObserving() {
- DCHECK(expected_loop_ == MessageLoop::current());
+ DCHECK(expected_loop_ == base::MessageLoop::current());
notification_registrar_.Remove(
this,
chrome::NOTIFICATION_LOGINS_CHANGED,

Powered by Google App Engine
This is Rietveld 408576698