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

Unified Diff: chrome/browser/password_manager/update_password_infobar_delegate_android.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky Created 4 years, 3 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: chrome/browser/password_manager/update_password_infobar_delegate_android.cc
diff --git a/chrome/browser/password_manager/update_password_infobar_delegate_android.cc b/chrome/browser/password_manager/update_password_infobar_delegate_android.cc
index c9cd572811994428d47254291f51be4f9e8893d0..b42c77ce2309ce20449580ec6a280568b8c97e49 100644
--- a/chrome/browser/password_manager/update_password_infobar_delegate_android.cc
+++ b/chrome/browser/password_manager/update_password_infobar_delegate_android.cc
@@ -29,10 +29,10 @@ void UpdatePasswordInfoBarDelegate::Create(
ProfileSyncServiceFactory::GetForProfile(
Profile::FromBrowserContext(web_contents->GetBrowserContext())));
InfoBarService::FromWebContents(web_contents)
- ->AddInfoBar(base::WrapUnique(new UpdatePasswordInfoBar(
+ ->AddInfoBar(base::MakeUnique<UpdatePasswordInfoBar>(
base::WrapUnique(new UpdatePasswordInfoBarDelegate(
web_contents, std::move(form_to_save),
- is_smartlock_branding_enabled)))));
+ is_smartlock_branding_enabled))));
}
UpdatePasswordInfoBarDelegate::~UpdatePasswordInfoBarDelegate() {}
« no previous file with comments | « chrome/browser/password_manager/password_store_x_unittest.cc ('k') | chrome/browser/permissions/chooser_context_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698