summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/glue/autofill_change_processor.cc
diff options
context:
space:
mode:
authorIain Merrick <husky@google.com>2010-11-01 12:19:54 +0000
committerIain Merrick <husky@google.com>2010-11-03 10:21:10 +0000
commit731df977c0511bca2206b5f333555b1205ff1f43 (patch)
tree0e750b949b3f00a1ac11fda25d3c2de512f2b465 /chrome/browser/sync/glue/autofill_change_processor.cc
parent5add15e10e7bb80512f2c597ca57221314abe577 (diff)
downloadexternal_chromium-731df977c0511bca2206b5f333555b1205ff1f43.zip
external_chromium-731df977c0511bca2206b5f333555b1205ff1f43.tar.gz
external_chromium-731df977c0511bca2206b5f333555b1205ff1f43.tar.bz2
Merge Chromium at r63472 : Initial merge by git.
Change-Id: Ifb9ee821af006a5f2211e81471be93ae440a1f5a
Diffstat (limited to 'chrome/browser/sync/glue/autofill_change_processor.cc')
-rw-r--r--chrome/browser/sync/glue/autofill_change_processor.cc19
1 files changed, 9 insertions, 10 deletions
diff --git a/chrome/browser/sync/glue/autofill_change_processor.cc b/chrome/browser/sync/glue/autofill_change_processor.cc
index aac46c0..c025e84 100644
--- a/chrome/browser/sync/glue/autofill_change_processor.cc
+++ b/chrome/browser/sync/glue/autofill_change_processor.cc
@@ -34,21 +34,20 @@ AutofillChangeProcessor::AutofillChangeProcessor(
DCHECK(web_database);
DCHECK(error_handler);
DCHECK(personal_data);
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::DB));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
StartObserving();
}
void AutofillChangeProcessor::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
- LOG(INFO) << "Observed autofill change.";
// Ensure this notification came from our web database.
WebDataService* wds = Source<WebDataService>(source).ptr();
if (!wds || wds->GetDatabase() != web_database_)
return;
DCHECK(running());
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::DB));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
if (!observing_)
return;
@@ -120,7 +119,7 @@ void AutofillChangeProcessor::OverrideProfileLabel(
}
void AutofillChangeProcessor::PostOptimisticRefreshTask() {
- ChromeThread::PostTask(ChromeThread::UI, FROM_HERE,
+ BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
new AutofillModelAssociator::DoOptimisticRefreshTask(
personal_data_));
}
@@ -293,7 +292,7 @@ void AutofillChangeProcessor::ApplyChangesFromSyncModel(
const sync_api::BaseTransaction* trans,
const sync_api::SyncManager::ChangeRecord* changes,
int change_count) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::DB));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
if (!running())
return;
StopObserving();
@@ -349,7 +348,7 @@ void AutofillChangeProcessor::ApplyChangesFromSyncModel(
}
void AutofillChangeProcessor::CommitChangesFromSyncModel() {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::DB));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
if (!running())
return;
StopObserving();
@@ -494,18 +493,18 @@ void AutofillChangeProcessor::ApplySyncAutofillProfileDelete(
}
void AutofillChangeProcessor::StartImpl(Profile* profile) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::DB));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
observing_ = true;
}
void AutofillChangeProcessor::StopImpl() {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
observing_ = false;
}
void AutofillChangeProcessor::StartObserving() {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::DB));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
notification_registrar_.Add(this, NotificationType::AUTOFILL_ENTRIES_CHANGED,
NotificationService::AllSources());
notification_registrar_.Add(this, NotificationType::AUTOFILL_PROFILE_CHANGED,
@@ -513,7 +512,7 @@ void AutofillChangeProcessor::StartObserving() {
}
void AutofillChangeProcessor::StopObserving() {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::DB));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
notification_registrar_.RemoveAll();
}