Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: components/autofill/content/browser/wallet/form_field_error.cc

Issue 17390010: Use a direct include of strings headers, delete some strings forwarding headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one less deleted file Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698