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

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

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 4 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
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 9e2cb550e9efc8212970381ef9a02a7b136b4677..27c342c7399f54877a490731337926d2c877f443 100644
--- a/components/autofill/content/browser/content_autofill_driver_factory.cc
+++ b/components/autofill/content/browser/content_autofill_driver_factory.cc
@@ -4,6 +4,7 @@
#include "components/autofill/content/browser/content_autofill_driver_factory.h"
+#include "base/memory/ptr_util.h"
#include "base/stl_util.h"
#include "components/autofill/content/browser/content_autofill_driver.h"
#include "components/autofill/core/browser/autofill_client.h"
@@ -54,7 +55,7 @@ ContentAutofillDriverFactory::ContentAutofillDriverFactory(
enable_download_manager_(enable_download_manager) {
content::RenderFrameHost* main_frame = web_contents->GetMainFrame();
if (main_frame->IsRenderFrameLive()) {
- frame_driver_map_[main_frame] = make_scoped_ptr(new ContentAutofillDriver(
+ frame_driver_map_[main_frame] = base::WrapUnique(new ContentAutofillDriver(
main_frame, client_, app_locale_, enable_download_manager_));
}
}
@@ -79,7 +80,7 @@ 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 = make_scoped_ptr(new ContentAutofillDriver(
+ insertion_result.first->second = base::WrapUnique(new ContentAutofillDriver(
render_frame_host, client_, app_locale_, enable_download_manager_));
}
}

Powered by Google App Engine
This is Rietveld 408576698