Index: components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc |
diff --git a/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc b/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc |
index aaab921468f78816895ed3df1cf54122f0231160..4dd23b431f31d1721c07972260884b8e0c17baba 100644 |
--- a/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc |
+++ b/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc |
@@ -10,6 +10,7 @@ |
#include <utility> |
#include "base/logging.h" |
+#include "base/memory/ptr_util.h" |
#include "base/strings/string_piece.h" |
#include "base/strings/string_util.h" |
#include "base/strings/utf_string_conversions.h" |
@@ -240,8 +241,8 @@ void AutofillWalletSyncableService::CreateForWebDataServiceAndBackend( |
AutofillWebDataBackend* webdata_backend, |
const std::string& app_locale) { |
web_data_service->GetDBUserData()->SetUserData( |
- UserDataKey(), |
- new AutofillWalletSyncableService(webdata_backend, app_locale)); |
+ UserDataKey(), base::WrapUnique(new AutofillWalletSyncableService( |
+ webdata_backend, app_locale))); |
} |
// static |