OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |