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

Unified Diff: components/autofill/core/browser/address.cc

Issue 261013010: autocomplete: add ability to get full address (hidden behind a flag). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GCC weirdness Created 6 years, 7 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/core/browser/address.cc
diff --git a/components/autofill/core/browser/address.cc b/components/autofill/core/browser/address.cc
index de6514794d01becd9d229df36f4e7f19716e17ed..e629d161e0659fb9685d39c7055de8ee0ea6f7b8 100644
--- a/components/autofill/core/browser/address.cc
+++ b/components/autofill/core/browser/address.cc
@@ -151,6 +151,9 @@ bool Address::SetInfo(const AutofillType& type,
country_code_ = StringToUpperASCII(base::UTF16ToASCII(value));
return true;
+ } else if (type.html_type() == HTML_TYPE_FULL_ADDRESS) {
+ // Parsing a full address is too hard.
+ return false;
}
ServerFieldType storable_type = type.GetStorableType();

Powered by Google App Engine
This is Rietveld 408576698