| 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 #include "components/autofill/content/browser/wallet/form_field_error.h" | 5 #include "components/autofill/content/browser/wallet/form_field_error.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 | 11 |
| 12 namespace autofill { | 12 namespace autofill { |
| 13 namespace wallet { | 13 namespace wallet { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 FormFieldError::ErrorType ErrorTypeFromString(const std::string& error_type) { | 17 FormFieldError::ErrorType ErrorTypeFromString(const std::string& error_type) { |
| 18 if (LowerCaseEqualsASCII(error_type, "unknown_error")) | 18 if (LowerCaseEqualsASCII(error_type, "unknown_error")) |
| 19 return FormFieldError::UNKNOWN_ERROR; | 19 return FormFieldError::UNKNOWN_ERROR; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 return form_field_error; | 146 return form_field_error; |
| 147 } | 147 } |
| 148 | 148 |
| 149 bool FormFieldError::operator==(const FormFieldError& other) const { | 149 bool FormFieldError::operator==(const FormFieldError& other) const { |
| 150 return error_type_ == other.error_type_ && location_ == other.location_; | 150 return error_type_ == other.error_type_ && location_ == other.location_; |
| 151 } | 151 } |
| 152 | 152 |
| 153 } // namespace wallet | 153 } // namespace wallet |
| 154 } // namespace autofill | 154 } // namespace autofill |
| OLD | NEW |