diff options
author | georgey@chromium.org <georgey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-19 23:09:09 +0000 |
---|---|---|
committer | georgey@chromium.org <georgey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-19 23:09:09 +0000 |
commit | b4364c9ad41701df66dd9737d57c9723d057d335 (patch) | |
tree | 715d21f6b3bfded47fdbea63f80c8a201b3651f7 /chrome/browser/autofill/autofill_profile.h | |
parent | a8ed096e8c3962073c785d70528f49f5a1b0a871 (diff) | |
download | chromium_src-b4364c9ad41701df66dd9737d57c9723d057d335.zip chromium_src-b4364c9ad41701df66dd9737d57c9723d057d335.tar.gz chromium_src-b4364c9ad41701df66dd9737d57c9723d057d335.tar.bz2 |
Added public copy constructor to AutoFillProfile to allow it to be used in std containers.
TEST=no
BUG=none
Review URL: http://codereview.chromium.org/553019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36570 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_profile.h')
-rw-r--r-- | chrome/browser/autofill/autofill_profile.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/autofill/autofill_profile.h b/chrome/browser/autofill/autofill_profile.h index eedc578..4b1fde6 100644 --- a/chrome/browser/autofill/autofill_profile.h +++ b/chrome/browser/autofill/autofill_profile.h @@ -21,6 +21,9 @@ typedef std::map<FieldTypeGroup, FormGroup*> FormGroupMap; class AutoFillProfile : public FormGroup { public: AutoFillProfile(const string16& label, int unique_id); + // for use in std containers + AutoFillProfile(); + AutoFillProfile(const AutoFillProfile&); virtual ~AutoFillProfile(); // FormGroup implementation: @@ -39,6 +42,9 @@ class AutoFillProfile : public FormGroup { virtual FormGroup* Clone() const; virtual string16 Label() const { return label_; } + // for use in std containers + void operator=(const AutoFillProfile&); + // NOTE: callers must write the profile to the WebDB after changing the value // of use_billing_address. void set_use_billing_address(bool use); @@ -49,9 +55,6 @@ class AutoFillProfile : public FormGroup { // TODO(jhawkins): Implement RemoveProfile. private: - // This constructor should only be used by the copy constructor. - AutoFillProfile() {} - Address* GetBillingAddress(); Address* GetHomeAddress(); @@ -67,8 +70,6 @@ class AutoFillProfile : public FormGroup { // Personal information for this profile. FormGroupMap personal_info_; - - DISALLOW_COPY_AND_ASSIGN(AutoFillProfile); }; #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_PROFILE_H_ |