summaryrefslogtreecommitdiffstats
path: root/components/autofill/core/browser/address.h
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-10 07:36:34 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-10 07:36:34 +0000
commitd30312c50388d4eb51a34c5e168f7abf5feb257c (patch)
tree5e6ae6506ad7d02f39c96f9ba5c98d2d734a7532 /components/autofill/core/browser/address.h
parent3e487e18a89ce229d8ab89ef608c31ce9ed3a6b6 (diff)
downloadchromium_src-d30312c50388d4eb51a34c5e168f7abf5feb257c.zip
chromium_src-d30312c50388d4eb51a34c5e168f7abf5feb257c.tar.gz
chromium_src-d30312c50388d4eb51a34c5e168f7abf5feb257c.tar.bz2
[Autofill] Support street addresses with arbitrarily many lines.
Data model changes only, in preparation for upcoming view changes. BUG=299154 TEST=unit_tests R=estade@chromium.org Review URL: https://codereview.chromium.org/106233002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239702 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/autofill/core/browser/address.h')
-rw-r--r--components/autofill/core/browser/address.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/components/autofill/core/browser/address.h b/components/autofill/core/browser/address.h
index 8ad2751..2508847 100644
--- a/components/autofill/core/browser/address.h
+++ b/components/autofill/core/browser/address.h
@@ -42,9 +42,11 @@ class Address : public FormGroup {
virtual void GetSupportedTypes(
ServerFieldTypeSet* supported_types) const OVERRIDE;
- // The address, sans country info.
- base::string16 line1_;
- base::string16 line2_;
+ // Trims any trailing newlines from |street_address_|.
+ void TrimStreetAddress();
+
+ // The lines of the street address.
+ std::vector<base::string16> street_address_;
// A subdivision of city, e.g. inner-city district or suburb.
base::string16 dependent_locality_;
base::string16 city_;