| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" | 5 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 9 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
| 10 #include "chrome/browser/infobars/infobar_service.h" | 10 #include "chrome/browser/infobars/infobar_service.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 chrome::ShowSettingsSubPage(browser, chrome::kAutofillSubPage); | 129 chrome::ShowSettingsSubPage(browser, chrome::kAutofillSubPage); |
| 130 #endif // #if defined(OS_ANDROID) | 130 #endif // #if defined(OS_ANDROID) |
| 131 } | 131 } |
| 132 | 132 |
| 133 void ChromeAutofillClient::ShowUnmaskPrompt( | 133 void ChromeAutofillClient::ShowUnmaskPrompt( |
| 134 const CreditCard& card, | 134 const CreditCard& card, |
| 135 base::WeakPtr<CardUnmaskDelegate> delegate) { | 135 base::WeakPtr<CardUnmaskDelegate> delegate) { |
| 136 unmask_controller_.ShowPrompt(card, delegate); | 136 unmask_controller_.ShowPrompt(card, delegate); |
| 137 } | 137 } |
| 138 | 138 |
| 139 void ChromeAutofillClient::OnUnmaskVerificationResult(bool success) { | 139 void ChromeAutofillClient::OnUnmaskVerificationResult(GetRealPanResult result) { |
| 140 unmask_controller_.OnVerificationResult(success); | 140 unmask_controller_.OnVerificationResult(result); |
| 141 } | 141 } |
| 142 | 142 |
| 143 void ChromeAutofillClient::ConfirmSaveCreditCard( | 143 void ChromeAutofillClient::ConfirmSaveCreditCard( |
| 144 const base::Closure& save_card_callback) { | 144 const base::Closure& save_card_callback) { |
| 145 AutofillCCInfoBarDelegate::Create( | 145 AutofillCCInfoBarDelegate::Create( |
| 146 InfoBarService::FromWebContents(web_contents()), this, | 146 InfoBarService::FromWebContents(web_contents()), this, |
| 147 save_card_callback); | 147 save_card_callback); |
| 148 } | 148 } |
| 149 | 149 |
| 150 bool ChromeAutofillClient::HasCreditCardScanFeature() { | 150 bool ChromeAutofillClient::HasCreditCardScanFeature() { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 new AutofillMsg_FirstUserGestureObservedInTab(routing_id())); | 283 new AutofillMsg_FirstUserGestureObservedInTab(routing_id())); |
| 284 } | 284 } |
| 285 | 285 |
| 286 void ChromeAutofillClient::LinkClicked(const GURL& url, | 286 void ChromeAutofillClient::LinkClicked(const GURL& url, |
| 287 WindowOpenDisposition disposition) { | 287 WindowOpenDisposition disposition) { |
| 288 web_contents()->OpenURL(content::OpenURLParams( | 288 web_contents()->OpenURL(content::OpenURLParams( |
| 289 url, content::Referrer(), disposition, ui::PAGE_TRANSITION_LINK, false)); | 289 url, content::Referrer(), disposition, ui::PAGE_TRANSITION_LINK, false)); |
| 290 } | 290 } |
| 291 | 291 |
| 292 } // namespace autofill | 292 } // namespace autofill |
| OLD | NEW |