From de326e142065a56afd98b6c4e0e155c88d2690f3 Mon Sep 17 00:00:00 2001 From: "skrul@chromium.org" Date: Fri, 30 Apr 2010 17:07:40 +0000 Subject: 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 --- chrome/browser/webdata/web_data_service.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'chrome/browser/webdata/web_data_service.cc') 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(this), Details(&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(this), Details(&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(this), Details(&changes)); } } -- cgit v1.1