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

Unified Diff: ios/chrome/browser/ui/autofill/autofill_client_ios.mm

Issue 2256193002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: ios/chrome/browser/ui/autofill/autofill_client_ios.mm
diff --git a/ios/chrome/browser/ui/autofill/autofill_client_ios.mm b/ios/chrome/browser/ui/autofill/autofill_client_ios.mm
index 31d79569b4c0aa78046ac71dec23521f605ea9e2..3fb800fc80ee10b6786c25e8f775205e8562fc98 100644
--- a/ios/chrome/browser/ui/autofill/autofill_client_ios.mm
+++ b/ios/chrome/browser/ui/autofill/autofill_client_ios.mm
@@ -97,9 +97,9 @@ void AutofillClientIOS::ConfirmSaveCreditCardLocally(
// InfoBarService is a WebContentsUserData, it must also be alive at this
// time.
infobar_manager_->AddInfoBar(CreateSaveCardInfoBarMobile(
- base::WrapUnique(new AutofillSaveCardInfoBarDelegateMobile(
+ base::MakeUnique<AutofillSaveCardInfoBarDelegateMobile>(
false, card, std::unique_ptr<base::DictionaryValue>(nullptr),
- callback))));
+ callback)));
}
void AutofillClientIOS::ConfirmSaveCreditCardToCloud(
@@ -107,8 +107,8 @@ void AutofillClientIOS::ConfirmSaveCreditCardToCloud(
std::unique_ptr<base::DictionaryValue> legal_message,
const base::Closure& callback) {
infobar_manager_->AddInfoBar(CreateSaveCardInfoBarMobile(
- base::WrapUnique(new AutofillSaveCardInfoBarDelegateMobile(
- true, card, std::move(legal_message), callback))));
+ base::MakeUnique<AutofillSaveCardInfoBarDelegateMobile>(
+ true, card, std::move(legal_message), callback)));
}
void AutofillClientIOS::ConfirmCreditCardFillAssist(
« no previous file with comments | « ios/chrome/browser/translate/translate_accept_languages_factory.cc ('k') | ios/chrome/browser/web_data_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698