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

Unified Diff: components/autofill/browser/form_structure.cc

Issue 13973004: Convert string16 -> base::string16 in components/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/browser/form_structure.cc
diff --git a/components/autofill/browser/form_structure.cc b/components/autofill/browser/form_structure.cc
index d7927a247cc1e98d45b4a6b57c151dc8bb3bd120..46f36d3f59a1c4310dad5a05ce467349d02f0948 100644
--- a/components/autofill/browser/form_structure.cc
+++ b/components/autofill/browser/form_structure.cc
@@ -299,7 +299,7 @@ FormStructure::FormStructure(const FormData& form,
autocheckout_url_prefix_(autocheckout_url_prefix),
filled_by_autocheckout_(false) {
// Copy the form fields.
- std::map<string16, size_t> unique_names;
+ std::map<base::string16, size_t> unique_names;
for (std::vector<FormFieldData>::const_iterator field =
form.fields.begin();
field != form.fields.end(); field++) {
@@ -324,7 +324,7 @@ FormStructure::FormStructure(const FormData& form,
unique_names[field->name] = 1;
else
++unique_names[field->name];
- string16 unique_name = field->name + ASCIIToUTF16("_") +
+ base::string16 unique_name = field->name + ASCIIToUTF16("_") +
base::IntToString16(unique_names[field->name]);
fields_.push_back(new AutofillField(*field, unique_name));
}
@@ -736,7 +736,7 @@ void FormStructure::UpdateFromCache(const FormStructure& cached_form) {
field->value == cached_field->second->value) {
// From the perspective of learning user data, text fields containing
// default values are equivalent to empty fields.
- field->value = string16();
+ field->value = base::string16();
}
field->set_heuristic_type(cached_field->second->heuristic_type());
@@ -1163,7 +1163,7 @@ void FormStructure::IdentifySections(bool has_author_specified_sections) {
if (!has_author_specified_sections) {
// Name sections after the first field in the section.
- string16 current_section = fields_.front()->unique_name();
+ base::string16 current_section = fields_.front()->unique_name();
// Keep track of the types we've seen in this section.
std::set<AutofillFieldType> seen_types;

Powered by Google App Engine
This is Rietveld 408576698