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

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

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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: 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 e0f2eb97bdfc6b48a4414a3dc72c08d1e4b7ca03..279f96fa8bd2050d11ddf433ab9f50527921b20e 100644
--- a/ios/chrome/browser/ui/autofill/autofill_client_ios.mm
+++ b/ios/chrome/browser/ui/autofill/autofill_client_ios.mm
@@ -7,6 +7,7 @@
#include <utility>
#include "base/bind.h"
+#include "base/memory/ptr_util.h"
#include "components/autofill/core/browser/autofill_save_card_infobar_delegate_mobile.h"
#include "components/autofill/core/browser/autofill_save_card_infobar_mobile.h"
#include "components/autofill/core/browser/ui/card_unmask_prompt_view.h"
@@ -30,7 +31,7 @@ AutofillClientIOS::AutofillClientIOS(
infobars::InfoBarManager* infobar_manager,
id<AutofillClientIOSBridge> bridge,
password_manager::PasswordGenerationManager* password_generation_manager,
- scoped_ptr<IdentityProvider> identity_provider)
+ std::unique_ptr<IdentityProvider> identity_provider)
: browser_state_(browser_state),
infobar_manager_(infobar_manager),
bridge_(bridge),
@@ -95,16 +96,17 @@ void AutofillClientIOS::ConfirmSaveCreditCardLocally(
// InfoBarService is a WebContentsUserData, it must also be alive at this
// time.
infobar_manager_->AddInfoBar(CreateSaveCardInfoBarMobile(
- make_scoped_ptr(new AutofillSaveCardInfoBarDelegateMobile(
- false, card, scoped_ptr<base::DictionaryValue>(nullptr), callback))));
+ base::WrapUnique(new AutofillSaveCardInfoBarDelegateMobile(
+ false, card, std::unique_ptr<base::DictionaryValue>(nullptr),
+ callback))));
}
void AutofillClientIOS::ConfirmSaveCreditCardToCloud(
const CreditCard& card,
- scoped_ptr<base::DictionaryValue> legal_message,
+ std::unique_ptr<base::DictionaryValue> legal_message,
const base::Closure& callback) {
infobar_manager_->AddInfoBar(CreateSaveCardInfoBarMobile(
- make_scoped_ptr(new AutofillSaveCardInfoBarDelegateMobile(
+ base::WrapUnique(new AutofillSaveCardInfoBarDelegateMobile(
true, card, std::move(legal_message), callback))));
}
« no previous file with comments | « ios/chrome/browser/ui/autofill/autofill_client_ios.h ('k') | ios/chrome/browser/ui/autofill/autofill_save_card_infobar.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698