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

Unified Diff: chrome/browser/autofill/autofill_profile.h

Issue 6484022: Autofill i18n: Set postal code and state field labels based on the selected country. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tests! Created 9 years, 10 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: chrome/browser/autofill/autofill_profile.h
diff --git a/chrome/browser/autofill/autofill_profile.h b/chrome/browser/autofill/autofill_profile.h
index f86ea9b18714015bcbb6808aece87927dcb09150..5d77ed87e0b08412c70fa38f0ad89ed9b0cb85ac 100644
--- a/chrome/browser/autofill/autofill_profile.h
+++ b/chrome/browser/autofill/autofill_profile.h
@@ -13,7 +13,6 @@
#include "base/string16.h"
#include "chrome/browser/autofill/form_group.h"
-class Address;
typedef std::map<FieldTypeGroup, FormGroup*> FormGroupMap;
// A collection of FormGroups stored in a profile. AutoFillProfile also
@@ -53,6 +52,10 @@ class AutoFillProfile : public FormGroup {
const std::string guid() const { return guid_; }
void set_guid(const std::string& guid) { guid_ = guid; }
+ // Accessors for the stored address's country code.
+ const std::string CountryCode() const;
+ void SetCountryCode(const std::string& country_code);
+
// Adjusts the labels according to profile data.
// Labels contain minimal different combination of:
// 1. Full name.

Powered by Google App Engine
This is Rietveld 408576698