Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3034)

Unified Diff: chrome/browser/sync/glue/autofill_data_type_controller.cc

Issue 16154031: Un-refcount AutofillWebData and TokenWebData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/autofill_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/autofill_data_type_controller.cc b/chrome/browser/sync/glue/autofill_data_type_controller.cc
index a9d666a94a2dd32a71693a6deadde1dec2dfcc61..d53f47d9cc527ef00fe793cd40cac88f72d11f2a 100644
--- a/chrome/browser/sync/glue/autofill_data_type_controller.cc
+++ b/chrome/browser/sync/glue/autofill_data_type_controller.cc
@@ -86,7 +86,7 @@ void AutofillDataTypeController::StartAssociating(
ProfileSyncService* sync = ProfileSyncServiceFactory::GetForProfile(
profile());
DCHECK(sync);
- scoped_refptr<autofill::AutofillWebDataService> web_data_service =
+ autofill::AutofillWebDataService* web_data_service =
autofill::AutofillWebDataService::FromBrowserContext(profile());
bool cull_expired_entries = sync->current_experiments().autofill_culling;
// First, post the update task to the DB thread, which guarantees us it
@@ -104,10 +104,10 @@ void AutofillDataTypeController::StartAssociating(
void AutofillDataTypeController::UpdateAutofillCullingSettings(
bool cull_expired_entries,
- scoped_refptr<autofill::AutofillWebDataService> web_data_service) {
+ autofill::AutofillWebDataService* web_data_service) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
AutocompleteSyncableService* service =
- AutocompleteSyncableService::FromWebDataService(web_data_service.get());
+ AutocompleteSyncableService::FromWebDataService(web_data_service);
if (!service) {
DVLOG(1) << "Can't update culling, no AutocompleteSyncableService.";
return;

Powered by Google App Engine
This is Rietveld 408576698