| 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/contact_info_editor_view_controller.h
" | 5 #include "chrome/browser/ui/views/payments/contact_info_editor_view_controller.h
" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/ui/views/payments/validating_textfield.h" | 8 #include "chrome/browser/ui/views/payments/validating_textfield.h" |
| 9 #include "components/autofill/core/browser/autofill_country.h" | 9 #include "components/autofill/core/browser/autofill_country.h" |
| 10 #include "components/autofill/core/browser/autofill_profile.h" | 10 #include "components/autofill/core/browser/autofill_profile.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 break; | 187 break; |
| 188 } | 188 } |
| 189 | 189 |
| 190 default: { | 190 default: { |
| 191 NOTREACHED(); | 191 NOTREACHED(); |
| 192 break; | 192 break; |
| 193 } | 193 } |
| 194 } | 194 } |
| 195 } | 195 } |
| 196 | 196 |
| 197 controller_->DisplayErrorMessageForField(field_, error_message); | 197 controller_->DisplayErrorMessageForField(field_.type, error_message); |
| 198 return is_valid; | 198 return is_valid; |
| 199 } | 199 } |
| 200 | 200 |
| 201 bool ContactInfoEditorViewController::ContactInfoValidationDelegate:: | 201 bool ContactInfoEditorViewController::ContactInfoValidationDelegate:: |
| 202 ValidateCombobox(views::Combobox* combobox) { | 202 ValidateCombobox(views::Combobox* combobox) { |
| 203 // This UI doesn't contain any comboboxes. | 203 // This UI doesn't contain any comboboxes. |
| 204 NOTREACHED(); | 204 NOTREACHED(); |
| 205 return true; | 205 return true; |
| 206 } | 206 } |
| 207 | 207 |
| 208 } // namespace payments | 208 } // namespace payments |
| OLD | NEW |