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

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: self review 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
« no previous file with comments | « components/autofill/core/browser/DEPS ('k') | components/autofill/core/browser/address_i18n.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/address.cc
diff --git a/components/autofill/core/browser/address.cc b/components/autofill/core/browser/address.cc
index 79cdef9714f668fc528c09103ce97e1c94f6a483..5ca29290bfda5b6c4fa9f27a2866438ee7bd1a71 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();
« no previous file with comments | « components/autofill/core/browser/DEPS ('k') | components/autofill/core/browser/address_i18n.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698