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

Unified Diff: components/autofill/ios/browser/autofill_driver_ios.mm

Issue 2847763003: Switch SupportsUserData uses to use unique_ptr. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « components/autofill/ios/browser/autofill_driver_ios.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/ios/browser/autofill_driver_ios.mm
diff --git a/components/autofill/ios/browser/autofill_driver_ios.mm b/components/autofill/ios/browser/autofill_driver_ios.mm
index 1f2deba8ef4945789e6fa8f9ef33136980c6d0cc..c6305bef20267d820a0ea18339a464fd39681f12 100644
--- a/components/autofill/ios/browser/autofill_driver_ios.mm
+++ b/components/autofill/ios/browser/autofill_driver_ios.mm
@@ -4,6 +4,7 @@
#include "components/autofill/ios/browser/autofill_driver_ios.h"
+#include "base/memory/ptr_util.h"
#include "components/autofill/ios/browser/autofill_driver_ios_bridge.h"
#include "ios/web/public/browser_state.h"
#import "ios/web/public/origin_util.h"
@@ -27,8 +28,8 @@ void AutofillDriverIOS::CreateForWebStateAndDelegate(
web_state->SetUserData(
UserDataKey(),
- new AutofillDriverIOS(web_state, client, bridge, app_locale,
- enable_download_manager));
+ base::WrapUnique(new AutofillDriverIOS(
+ web_state, client, bridge, app_locale, enable_download_manager)));
}
AutofillDriverIOS::AutofillDriverIOS(
« no previous file with comments | « components/autofill/ios/browser/autofill_driver_ios.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698