summaryrefslogtreecommitdiffstats
path: root/chrome/browser/webdata/web_data_service.cc
diff options
context:
space:
mode:
authorskrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-04 17:55:19 +0000
committerskrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-04 17:55:19 +0000
commiteb4f603d74db011b6aeca3a7dec620565fea8810 (patch)
tree4ece9f421afbf01b25924b14c286468a284b4df4 /chrome/browser/webdata/web_data_service.cc
parent1f68ee623af485bb6fadaa006a1e873b62602d10 (diff)
downloadchromium_src-eb4f603d74db011b6aeca3a7dec620565fea8810.zip
chromium_src-eb4f603d74db011b6aeca3a7dec620565fea8810.tar.gz
chromium_src-eb4f603d74db011b6aeca3a7dec620565fea8810.tar.bz2
Change autofill profile notifications to use WDS as source
I had made this change for regular autofill but didn't carry it all the way through and broke autofill profile sync :( BUG=43110 Review URL: http://codereview.chromium.org/1863004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/webdata/web_data_service.cc')
-rw-r--r--chrome/browser/webdata/web_data_service.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/webdata/web_data_service.cc b/chrome/browser/webdata/web_data_service.cc
index c6ef778..45c463e 100644
--- a/chrome/browser/webdata/web_data_service.cc
+++ b/chrome/browser/webdata/web_data_service.cc
@@ -522,7 +522,7 @@ void WebDataService::InitializeDatabaseIfNecessary() {
void WebDataService::NotifyDatabaseLoadedOnUIThread() {
// Notify that the database has been initialized.
NotificationService::current()->Notify(NotificationType::WEB_DATABASE_LOADED,
- NotificationService::AllSources(),
+ Source<WebDataService>(this),
NotificationService::NoDetails());
}
@@ -878,7 +878,7 @@ void WebDataService::AddAutoFillProfileImpl(
profile.Label(), &profile, string16());
NotificationService::current()->Notify(
NotificationType::AUTOFILL_PROFILE_CHANGED,
- NotificationService::AllSources(),
+ Source<WebDataService>(this),
Details<AutofillProfileChange>(&change));
}
request->RequestComplete();
@@ -906,7 +906,7 @@ void WebDataService::UpdateAutoFillProfileImpl(
old_profile->Label());
NotificationService::current()->Notify(
NotificationType::AUTOFILL_PROFILE_CHANGED,
- NotificationService::AllSources(),
+ Source<WebDataService>(this),
Details<AutofillProfileChange>(&change));
}
}
@@ -933,7 +933,7 @@ void WebDataService::RemoveAutoFillProfileImpl(
NULL, string16());
NotificationService::current()->Notify(
NotificationType::AUTOFILL_PROFILE_CHANGED,
- NotificationService::AllSources(),
+ Source<WebDataService>(this),
Details<AutofillProfileChange>(&change));
}
}
@@ -965,7 +965,7 @@ void WebDataService::AddCreditCardImpl(
creditcard.Label(), &creditcard);
NotificationService::current()->Notify(
NotificationType::AUTOFILL_CREDIT_CARD_CHANGED,
- NotificationService::AllSources(),
+ Source<WebDataService>(this),
Details<AutofillCreditCardChange>(&change));
}
request->RequestComplete();
@@ -984,7 +984,7 @@ void WebDataService::UpdateCreditCardImpl(
creditcard.Label(), &creditcard);
NotificationService::current()->Notify(
NotificationType::AUTOFILL_CREDIT_CARD_CHANGED,
- NotificationService::AllSources(),
+ Source<WebDataService>(this),
Details<AutofillCreditCardChange>(&change));
}
request->RequestComplete();
@@ -1010,7 +1010,7 @@ void WebDataService::RemoveCreditCardImpl(
dead_card->Label(), NULL);
NotificationService::current()->Notify(
NotificationType::AUTOFILL_CREDIT_CARD_CHANGED,
- NotificationService::AllSources(),
+ Source<WebDataService>(this),
Details<AutofillCreditCardChange>(&change));
}
}