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

Side by Side Diff: ios/chrome/browser/ui/autofill/autofill_client_ios.mm

Issue 2789843004: [Payments] Upload card UI now has a CVC prompt (Closed)
Patch Set: Address code review comment Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/chrome/browser/ui/autofill/autofill_client_ios.h" 5 #import "ios/chrome/browser/ui/autofill/autofill_client_ios.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 78
79 rappor::RapporServiceImpl* AutofillClientIOS::GetRapporServiceImpl() { 79 rappor::RapporServiceImpl* AutofillClientIOS::GetRapporServiceImpl() {
80 return GetApplicationContext()->GetRapporServiceImpl(); 80 return GetApplicationContext()->GetRapporServiceImpl();
81 } 81 }
82 82
83 ukm::UkmService* AutofillClientIOS::GetUkmService() { 83 ukm::UkmService* AutofillClientIOS::GetUkmService() {
84 return GetApplicationContext()->GetUkmService(); 84 return GetApplicationContext()->GetUkmService();
85 } 85 }
86 86
87 SaveCardBubbleController* AutofillClientIOS::GetSaveCardBubbleController() {
88 return nullptr;
89 }
90
87 void AutofillClientIOS::ShowAutofillSettings() { 91 void AutofillClientIOS::ShowAutofillSettings() {
88 NOTREACHED(); 92 NOTREACHED();
89 } 93 }
90 94
91 void AutofillClientIOS::ShowUnmaskPrompt( 95 void AutofillClientIOS::ShowUnmaskPrompt(
92 const CreditCard& card, 96 const CreditCard& card,
93 UnmaskCardReason reason, 97 UnmaskCardReason reason,
94 base::WeakPtr<CardUnmaskDelegate> delegate) { 98 base::WeakPtr<CardUnmaskDelegate> delegate) {
95 unmask_controller_.ShowPrompt( 99 unmask_controller_.ShowPrompt(
96 // autofill::CardUnmaskPromptViewBridge manages its own lifetime, so 100 // autofill::CardUnmaskPromptViewBridge manages its own lifetime, so
(...skipping 16 matching lines...) Expand all
113 // time. 117 // time.
114 infobar_manager_->AddInfoBar(CreateSaveCardInfoBarMobile( 118 infobar_manager_->AddInfoBar(CreateSaveCardInfoBarMobile(
115 base::MakeUnique<AutofillSaveCardInfoBarDelegateMobile>( 119 base::MakeUnique<AutofillSaveCardInfoBarDelegateMobile>(
116 false, card, std::unique_ptr<base::DictionaryValue>(nullptr), 120 false, card, std::unique_ptr<base::DictionaryValue>(nullptr),
117 callback))); 121 callback)));
118 } 122 }
119 123
120 void AutofillClientIOS::ConfirmSaveCreditCardToCloud( 124 void AutofillClientIOS::ConfirmSaveCreditCardToCloud(
121 const CreditCard& card, 125 const CreditCard& card,
122 std::unique_ptr<base::DictionaryValue> legal_message, 126 std::unique_ptr<base::DictionaryValue> legal_message,
127 bool should_cvc_be_requested,
123 const base::Closure& callback) { 128 const base::Closure& callback) {
124 infobar_manager_->AddInfoBar(CreateSaveCardInfoBarMobile( 129 infobar_manager_->AddInfoBar(CreateSaveCardInfoBarMobile(
125 base::MakeUnique<AutofillSaveCardInfoBarDelegateMobile>( 130 base::MakeUnique<AutofillSaveCardInfoBarDelegateMobile>(
126 true, card, std::move(legal_message), callback))); 131 true, card, std::move(legal_message), callback)));
127 } 132 }
128 133
129 void AutofillClientIOS::ConfirmCreditCardFillAssist( 134 void AutofillClientIOS::ConfirmCreditCardFillAssist(
130 const CreditCard& card, 135 const CreditCard& card,
131 const base::Closure& callback) { 136 const base::Closure& callback) {
132 auto infobar_delegate = 137 auto infobar_delegate =
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 226
222 void AutofillClientIOS::StartSigninFlow() { 227 void AutofillClientIOS::StartSigninFlow() {
223 NOTIMPLEMENTED(); 228 NOTIMPLEMENTED();
224 } 229 }
225 230
226 void AutofillClientIOS::ShowHttpNotSecureExplanation() { 231 void AutofillClientIOS::ShowHttpNotSecureExplanation() {
227 NOTIMPLEMENTED(); 232 NOTIMPLEMENTED();
228 } 233 }
229 234
230 } // namespace autofill 235 } // namespace autofill
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/autofill/autofill_client_ios.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698