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

Unified Diff: components/autofill/content/browser/content_autofill_driver_factory.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/content/browser/content_autofill_driver_factory.cc
diff --git a/components/autofill/content/browser/content_autofill_driver_factory.cc b/components/autofill/content/browser/content_autofill_driver_factory.cc
index 7cc116404d1dcb7fb5731ddbc684fe4fecdca1f1..32465df8fa498a67799d01335e68350f1d6cad54 100644
--- a/components/autofill/content/browser/content_autofill_driver_factory.cc
+++ b/components/autofill/content/browser/content_autofill_driver_factory.cc
@@ -100,8 +100,8 @@ void ContentAutofillDriverFactory::RenderFrameCreated(
frame_driver_map_.insert(std::make_pair(render_frame_host, nullptr));
// This is called twice for the main frame.
if (insertion_result.second) { // This was the first time.
- insertion_result.first->second = base::WrapUnique(new ContentAutofillDriver(
- render_frame_host, client_, app_locale_, enable_download_manager_));
+ insertion_result.first->second = base::MakeUnique<ContentAutofillDriver>(
+ render_frame_host, client_, app_locale_, enable_download_manager_);
}
}
« no previous file with comments | « components/arc/bluetooth/arc_bluetooth_bridge.cc ('k') | components/autofill/content/renderer/password_autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698