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

Unified Diff: components/password_manager/content/browser/content_password_manager_driver_factory.cc

Issue 2259813002: 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
« no previous file with comments | « no previous file | components/password_manager/content/renderer/credential_manager_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/content/browser/content_password_manager_driver_factory.cc
diff --git a/components/password_manager/content/browser/content_password_manager_driver_factory.cc b/components/password_manager/content/browser/content_password_manager_driver_factory.cc
index ad8d203fc7c4a20beef60871a9b264ecccf1f240..c14147bf0de24f016865798bd21a65adcbba3f6e 100644
--- a/components/password_manager/content/browser/content_password_manager_driver_factory.cc
+++ b/components/password_manager/content/browser/content_password_manager_driver_factory.cc
@@ -89,8 +89,8 @@ void ContentPasswordManagerDriverFactory::RenderFrameCreated(
// This is called twice for the main frame.
if (insertion_result.second) { // This was the first time.
insertion_result.first->second =
- base::WrapUnique(new ContentPasswordManagerDriver(
- render_frame_host, password_client_, autofill_client_));
+ base::MakeUnique<ContentPasswordManagerDriver>(
+ render_frame_host, password_client_, autofill_client_);
}
}
« no previous file with comments | « no previous file | components/password_manager/content/renderer/credential_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698