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

Unified Diff: components/autofill/browser/address.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/address.cc
diff --git a/components/autofill/browser/address.cc b/components/autofill/browser/address.cc
index 71dbf328e8c4a6755af2726db4cb0c3eb6972a20..871eacbf571183ae31a683f65d91b8c5eff729bf 100644
--- a/components/autofill/browser/address.cc
+++ b/components/autofill/browser/address.cc
@@ -51,7 +51,7 @@ void Address::GetSupportedTypes(FieldTypeSet* supported_types) const {
supported_types->insert(ADDRESS_HOME_COUNTRY);
}
-string16 Address::GetRawInfo(AutofillFieldType type) const {
+base::string16 Address::GetRawInfo(AutofillFieldType type) const {
type = AutofillType::GetEquivalentFieldType(type);
if (type == ADDRESS_HOME_LINE1)
return line1_;
@@ -71,10 +71,10 @@ string16 Address::GetRawInfo(AutofillFieldType type) const {
if (type == ADDRESS_HOME_COUNTRY)
return country_code_;
- return string16();
+ return base::string16();
}
-void Address::SetRawInfo(AutofillFieldType type, const string16& value) {
+void Address::SetRawInfo(AutofillFieldType type, const base::string16& value) {
type = AutofillType::GetEquivalentFieldType(type);
if (type == ADDRESS_HOME_LINE1) {
line1_ = value;
@@ -94,8 +94,8 @@ void Address::SetRawInfo(AutofillFieldType type, const string16& value) {
}
}
-string16 Address::GetInfo(AutofillFieldType type,
- const std::string& app_locale) const {
+base::string16 Address::GetInfo(AutofillFieldType type,
+ const std::string& app_locale) const {
type = AutofillType::GetEquivalentFieldType(type);
if (type == ADDRESS_HOME_COUNTRY && !country_code_.empty())
return AutofillCountry(UTF16ToASCII(country_code_), app_locale).name();
@@ -104,7 +104,7 @@ string16 Address::GetInfo(AutofillFieldType type,
}
bool Address::SetInfo(AutofillFieldType type,
- const string16& value,
+ const base::string16& value,
const std::string& app_locale) {
type = AutofillType::GetEquivalentFieldType(type);
if (type == ADDRESS_HOME_COUNTRY && !value.empty()) {
@@ -117,7 +117,7 @@ bool Address::SetInfo(AutofillFieldType type,
return true;
}
-void Address::GetMatchingTypes(const string16& text,
+void Address::GetMatchingTypes(const base::string16& text,
const std::string& app_locale,
FieldTypeSet* matching_types) const {
FormGroup::GetMatchingTypes(text, app_locale, matching_types);

Powered by Google App Engine
This is Rietveld 408576698