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

Side by Side Diff: components/autofill/core/common/form_data.cc

Issue 112433004: Update uses of UTF conversions in chrome_frame/, chromeos/, components/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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/core/common/form_data.h" 5 #include "components/autofill/core/common/form_data.h"
6 6
7 #include "base/pickle.h" 7 #include "base/pickle.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/autofill/core/common/form_field_data.h" 10 #include "components/autofill/core/common/form_field_data.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 action == form.action && 73 action == form.action &&
74 user_submitted == form.user_submitted && 74 user_submitted == form.user_submitted &&
75 fields == form.fields; 75 fields == form.fields;
76 } 76 }
77 77
78 bool FormData::operator!=(const FormData& form) const { 78 bool FormData::operator!=(const FormData& form) const {
79 return !operator==(form); 79 return !operator==(form);
80 } 80 }
81 81
82 std::ostream& operator<<(std::ostream& os, const FormData& form) { 82 std::ostream& operator<<(std::ostream& os, const FormData& form) {
83 os << UTF16ToUTF8(form.name) << " " 83 os << base::UTF16ToUTF8(form.name) << " "
84 << UTF16ToUTF8(form.method) << " " 84 << base::UTF16ToUTF8(form.method) << " "
85 << form.origin << " " 85 << form.origin << " "
86 << form.action << " " 86 << form.action << " "
87 << form.user_submitted << " " 87 << form.user_submitted << " "
88 << "Fields:"; 88 << "Fields:";
89 for (size_t i = 0; i < form.fields.size(); ++i) { 89 for (size_t i = 0; i < form.fields.size(); ++i) {
90 os << form.fields[i] << ","; 90 os << form.fields[i] << ",";
91 } 91 }
92 return os; 92 return os;
93 } 93 }
94 94
(...skipping 29 matching lines...) Expand all
124 } 124 }
125 default: { 125 default: {
126 LOG(ERROR) << "Unknown FormData pickle version " << version; 126 LOG(ERROR) << "Unknown FormData pickle version " << version;
127 return false; 127 return false;
128 } 128 }
129 } 129 }
130 return true; 130 return true;
131 } 131 }
132 132
133 } // namespace autofill 133 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698