Chromium Code Reviews| 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" | |
|
Ilya Sherman
2014/10/16 16:53:43
The NOTREACHED() macro uses this #include.
Sunil Ratnu
2014/10/17 02:45:59
Done.
| |
| 8 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/values.h" | 9 #include "base/values.h" |
| 11 | 10 |
| 12 namespace autofill { | 11 namespace autofill { |
| 13 namespace wallet { | 12 namespace wallet { |
| 14 | 13 |
| 15 namespace { | 14 namespace { |
| 16 | 15 |
| 17 FormFieldError::ErrorType ErrorTypeFromString(const std::string& error_type) { | 16 FormFieldError::ErrorType ErrorTypeFromString(const std::string& error_type) { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 145 | 144 |
| 146 return form_field_error; | 145 return form_field_error; |
| 147 } | 146 } |
| 148 | 147 |
| 149 bool FormFieldError::operator==(const FormFieldError& other) const { | 148 bool FormFieldError::operator==(const FormFieldError& other) const { |
| 150 return error_type_ == other.error_type_ && location_ == other.location_; | 149 return error_type_ == other.error_type_ && location_ == other.location_; |
| 151 } | 150 } |
| 152 | 151 |
| 153 } // namespace wallet | 152 } // namespace wallet |
| 154 } // namespace autofill | 153 } // namespace autofill |
| OLD | NEW |