| 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/credit_card_editor_view_controller.h" | 5 #include "chrome/browser/ui/views/payments/credit_card_editor_view_controller.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 321 |
| 322 bool is_required_valid = !field_.required; | 322 bool is_required_valid = !field_.required; |
| 323 const base::string16 displayed_message = | 323 const base::string16 displayed_message = |
| 324 is_required_valid ? base::ASCIIToUTF16("") | 324 is_required_valid ? base::ASCIIToUTF16("") |
| 325 : l10n_util::GetStringUTF16( | 325 : l10n_util::GetStringUTF16( |
| 326 IDS_PAYMENTS_FIELD_REQUIRED_VALIDATION_MESSAGE); | 326 IDS_PAYMENTS_FIELD_REQUIRED_VALIDATION_MESSAGE); |
| 327 controller_->DisplayErrorMessageForField(field_, displayed_message); | 327 controller_->DisplayErrorMessageForField(field_, displayed_message); |
| 328 return is_required_valid; | 328 return is_required_valid; |
| 329 } | 329 } |
| 330 | 330 |
| 331 bool CreditCardEditorViewController::GetSheetId(DialogViewID* sheet_id) { |
| 332 *sheet_id = DialogViewID::CREDIT_CARD_EDITOR_SHEET; |
| 333 return true; |
| 334 } |
| 335 |
| 331 } // namespace payments | 336 } // namespace payments |
| OLD | NEW |