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

Side by Side Diff: chrome/browser/autofill/fax_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/autofill/fax_number.h ('k') | chrome/browser/autofill/form_group.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/autofill/fax_number.h" 5 #include "chrome/browser/autofill/fax_number.h"
6 6
7 FaxNumber::FaxNumber() {} 7 FaxNumber::FaxNumber() {}
8 8
9 FaxNumber::FaxNumber(const FaxNumber& fax) : PhoneNumber(fax) {}
10
9 FaxNumber::~FaxNumber() {} 11 FaxNumber::~FaxNumber() {}
10 12
11 FormGroup* FaxNumber::Clone() const { 13 FaxNumber& FaxNumber::operator=(const FaxNumber& fax) {
12 return new FaxNumber(*this); 14 PhoneNumber::operator=(fax);
15 return *this;
13 } 16 }
14 17
15 AutofillFieldType FaxNumber::GetNumberType() const { 18 AutofillFieldType FaxNumber::GetNumberType() const {
16 return PHONE_FAX_NUMBER; 19 return PHONE_FAX_NUMBER;
17 } 20 }
18 21
19 AutofillFieldType FaxNumber::GetCityCodeType() const { 22 AutofillFieldType FaxNumber::GetCityCodeType() const {
20 return PHONE_FAX_CITY_CODE; 23 return PHONE_FAX_CITY_CODE;
21 } 24 }
22 25
23 AutofillFieldType FaxNumber::GetCountryCodeType() const { 26 AutofillFieldType FaxNumber::GetCountryCodeType() const {
24 return PHONE_FAX_COUNTRY_CODE; 27 return PHONE_FAX_COUNTRY_CODE;
25 } 28 }
26 29
27 AutofillFieldType FaxNumber::GetCityAndNumberType() const { 30 AutofillFieldType FaxNumber::GetCityAndNumberType() const {
28 return PHONE_FAX_CITY_AND_NUMBER; 31 return PHONE_FAX_CITY_AND_NUMBER;
29 } 32 }
30 33
31 AutofillFieldType FaxNumber::GetWholeNumberType() const { 34 AutofillFieldType FaxNumber::GetWholeNumberType() const {
32 return PHONE_FAX_WHOLE_NUMBER; 35 return PHONE_FAX_WHOLE_NUMBER;
33 } 36 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/fax_number.h ('k') | chrome/browser/autofill/form_group.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698