| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/views/payments/cvc_unmask_view_controller.h" | 5 #include "chrome/browser/ui/views/payments/cvc_unmask_view_controller.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/autofill/risk_util.h" | 10 #include "chrome/browser/autofill/risk_util.h" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 const base::string16& cvc = cvc_field_->text(); | 199 const base::string16& cvc = cvc_field_->text(); |
| 200 if (unmask_delegate_) { | 200 if (unmask_delegate_) { |
| 201 autofill::CardUnmaskDelegate::UnmaskResponse response; | 201 autofill::CardUnmaskDelegate::UnmaskResponse response; |
| 202 response.cvc = cvc; | 202 response.cvc = cvc; |
| 203 unmask_delegate_->OnUnmaskResponse(response); | 203 unmask_delegate_->OnUnmaskResponse(response); |
| 204 } | 204 } |
| 205 | 205 |
| 206 dialog()->ShowProcessingSpinner(); | 206 dialog()->ShowProcessingSpinner(); |
| 207 } | 207 } |
| 208 | 208 |
| 209 views::View* CvcUnmaskViewController::GetFirstFocusedView() { |
| 210 return cvc_field_; |
| 211 } |
| 212 |
| 209 } // namespace payments | 213 } // namespace payments |
| OLD | NEW |