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

Unified Diff: components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc

Issue 2672493002: [Sync] Switch bots to run integ tests for autofill as USS. (Closed)
Patch Set: Updated for Gang's comment. Created 3 years, 10 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: components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc
diff --git a/components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc b/components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc
index c18292a288632bde3cf5cacb046e35bfb46bdd90..589df1628afd352b8a5380537b414b7808359d6d 100644
--- a/components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc
+++ b/components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc
@@ -35,6 +35,7 @@ using syncer::EntityDataMap;
using syncer::MetadataChangeList;
using syncer::ModelError;
using syncer::ModelTypeChangeProcessor;
+using syncer::ModelTypeSyncBridge;
using syncer::MutableDataBatch;
namespace autofill {
@@ -291,10 +292,11 @@ void AutocompleteSyncBridge::CreateForWebDataServiceAndBackend(
}
// static
-AutocompleteSyncBridge* AutocompleteSyncBridge::FromWebDataService(
+base::WeakPtr<ModelTypeSyncBridge> AutocompleteSyncBridge::FromWebDataService(
AutofillWebDataService* web_data_service) {
return static_cast<AutocompleteSyncBridge*>(
- web_data_service->GetDBUserData()->GetUserData(UserDataKey()));
+ web_data_service->GetDBUserData()->GetUserData(UserDataKey()))
+ ->AsWeakPtr();
}
AutocompleteSyncBridge::AutocompleteSyncBridge(

Powered by Google App Engine
This is Rietveld 408576698