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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/fax_number.h ('k') | chrome/browser/autofill/form_group.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/fax_number.cc
diff --git a/chrome/browser/autofill/fax_number.cc b/chrome/browser/autofill/fax_number.cc
index d1ea3d2251dad3db30317ba0b156e4c00f1e93f0..3d1a65139fc4bc69c9cf86647c84d76bbf4ec302 100644
--- a/chrome/browser/autofill/fax_number.cc
+++ b/chrome/browser/autofill/fax_number.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,10 +6,13 @@
FaxNumber::FaxNumber() {}
+FaxNumber::FaxNumber(const FaxNumber& fax) : PhoneNumber(fax) {}
+
FaxNumber::~FaxNumber() {}
-FormGroup* FaxNumber::Clone() const {
- return new FaxNumber(*this);
+FaxNumber& FaxNumber::operator=(const FaxNumber& fax) {
+ PhoneNumber::operator=(fax);
+ return *this;
}
AutofillFieldType FaxNumber::GetNumberType() const {
« 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