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

Unified Diff: chrome/browser/autofill/phone_number.cc

Issue 6650014: Autofill extend profiles to include multi-valued fields, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit Created 9 years, 9 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 | « chrome/browser/autofill/phone_number.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/phone_number.cc
diff --git a/chrome/browser/autofill/phone_number.cc b/chrome/browser/autofill/phone_number.cc
index 2b8a0cc6b1738acbfefb20bf0ecdf5e361bd87bc..110616a7b5feaa80ab34840c349127133ef5fea7 100644
--- a/chrome/browser/autofill/phone_number.cc
+++ b/chrome/browser/autofill/phone_number.cc
@@ -34,8 +34,22 @@ const int kAutoFillPhoneLength = arraysize(kAutoFillPhoneTypes);
PhoneNumber::PhoneNumber() {}
+PhoneNumber::PhoneNumber(const PhoneNumber& number) : FormGroup() {
+ *this = number;
+}
+
PhoneNumber::~PhoneNumber() {}
+PhoneNumber& PhoneNumber::operator=(const PhoneNumber& number) {
+ if (this == &number)
+ return *this;
+ country_code_ = number.country_code_;
+ city_code_ = number.city_code_;
+ number_ = number.number_;
+ extension_ = number.extension_;
+ return *this;
+}
+
void PhoneNumber::GetPossibleFieldTypes(const string16& text,
FieldTypeSet* possible_types) const {
string16 stripped_text(text);
@@ -212,14 +226,6 @@ void PhoneNumber::set_whole_number(const string16& whole_number) {
set_country_code(country_code);
}
-PhoneNumber::PhoneNumber(const PhoneNumber& phone_number)
- : FormGroup(),
- country_code_(phone_number.country_code_),
- city_code_(phone_number.city_code_),
- number_(phone_number.number_),
- extension_(phone_number.extension_) {
-}
-
bool PhoneNumber::FindInfoMatchesHelper(const FieldTypeSubGroup& subgroup,
const string16& info,
string16* match) const {
« no previous file with comments | « chrome/browser/autofill/phone_number.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698