From b0a9cfdf9f4bf3d626da624a7f15daef7cf1b3e7 Mon Sep 17 00:00:00 2001 From: "isherman@chromium.org" Date: Tue, 9 Oct 2012 21:10:04 +0000 Subject: [Autofill] Remove client-side culling for old autocomplete entries. This is an optimization that was running to prevent flooding the server with extra changes. Most users should have had their old entries culled by now, as the code has been checked in for several moons. BUG=146599 TEST=none Review URL: https://chromiumcodereview.appspot.com/11066074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160926 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/autofill/personal_data_manager.cc | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'chrome/browser/autofill') diff --git a/chrome/browser/autofill/personal_data_manager.cc b/chrome/browser/autofill/personal_data_manager.cc index df4ee00..88458ce 100644 --- a/chrome/browser/autofill/personal_data_manager.cc +++ b/chrome/browser/autofill/personal_data_manager.cc @@ -162,21 +162,6 @@ void PersonalDataManager::OnWebDataServiceRequestDone( AutofillProfile::AdjustInferredLabels(&profile_pointers); FOR_EACH_OBSERVER(PersonalDataManagerObserver, observers_, OnPersonalDataChanged()); - - // As all Autofill data is ready, the Autocomplete data is ready as well. - // If sync is not set, cull older entries of the autocomplete. Otherwise, - // the entries will be culled when sync is connected. - ProfileSyncServiceBase* sync_service = - ProfileSyncServiceBase::FromBrowserContext(browser_context_); - if (sync_service && (!sync_service->HasSyncSetupCompleted() || - !PrefServiceBase::FromBrowserContext( - browser_context_)->GetBoolean( - prefs::kSyncAutofill))) { - scoped_ptr service( - AutofillWebDataService::FromBrowserContext(browser_context_)); - if (service.get()) - service->RemoveExpiredFormElements(); - } } } -- cgit v1.1