diff options
author | skrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-30 17:07:40 +0000 |
---|---|---|
committer | skrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-30 17:07:40 +0000 |
commit | de326e142065a56afd98b6c4e0e155c88d2690f3 (patch) | |
tree | 4fb7a52f26cd26708553cf7f78c11e3bf5f07c34 /chrome/browser/webdata/web_data_service.cc | |
parent | 7154e601b5a4d530ecc4ce0bfa13554b31d90444 (diff) | |
download | chromium_src-de326e142065a56afd98b6c4e0e155c88d2690f3.zip chromium_src-de326e142065a56afd98b6c4e0e155c88d2690f3.tar.gz chromium_src-de326e142065a56afd98b6c4e0e155c88d2690f3.tar.bz2 |
Adds TwoClientLiveAutofillSyncTest to test old school autofill. Includes some refactoring of the WebDataServiceTest to allow some code sharing between the two.
Review URL: http://codereview.chromium.org/1739017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46080 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/webdata/web_data_service.cc')
-rw-r--r-- | chrome/browser/webdata/web_data_service.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/webdata/web_data_service.cc b/chrome/browser/webdata/web_data_service.cc index 1a66823..c6ef778 100644 --- a/chrome/browser/webdata/web_data_service.cc +++ b/chrome/browser/webdata/web_data_service.cc @@ -16,6 +16,7 @@ #include "chrome/common/chrome_constants.h" #include "chrome/common/notification_details.h" #include "chrome/common/notification_service.h" +#include "chrome/common/notification_source.h" #include "chrome/common/notification_type.h" #include "grit/chromium_strings.h" #include "grit/generated_resources.h" @@ -794,7 +795,7 @@ void WebDataService::AddFormElementsImpl( // done on the DB thread, and not the UI thread. NotificationService::current()->Notify( NotificationType::AUTOFILL_ENTRIES_CHANGED, - NotificationService::AllSources(), + Source<WebDataService>(this), Details<AutofillChangeList>(&changes)); } @@ -830,7 +831,7 @@ void WebDataService::RemoveFormElementsAddedBetweenImpl( // will be done on the DB thread, and not the UI thread. NotificationService::current()->Notify( NotificationType::AUTOFILL_ENTRIES_CHANGED, - NotificationService::AllSources(), + Source<WebDataService>(this), Details<AutofillChangeList>(&changes)); } ScheduleCommit(); @@ -857,7 +858,7 @@ void WebDataService::RemoveFormValueForElementNameImpl( // Post the notifications including the list of affected keys. NotificationService::current()->Notify( NotificationType::AUTOFILL_ENTRIES_CHANGED, - NotificationService::AllSources(), + Source<WebDataService>(this), Details<AutofillChangeList>(&changes)); } } |