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

Side by Side Diff: components/autofill/core/browser/contact_info.h

Issue 261993006: Modified to allow to preserve two-word string in first-name and last-name in autofill profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added case-insensitivity handling and unit-tests. Created 6 years, 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "components/autofill/core/browser/form_group.h" 13 #include "components/autofill/core/browser/form_group.h"
14 14
15 namespace autofill { 15 namespace autofill {
16 16
17 // A form group that stores name information. 17 // A form group that stores name information.
18 class NameInfo : public FormGroup { 18 class NameInfo : public FormGroup {
19 public: 19 public:
20 NameInfo(); 20 NameInfo();
21 NameInfo(const NameInfo& info); 21 NameInfo(const NameInfo& info);
22 virtual ~NameInfo(); 22 virtual ~NameInfo();
23 23
24 NameInfo& operator=(const NameInfo& info); 24 NameInfo& operator=(const NameInfo& info);
25 bool operator==(const NameInfo& info);
26 bool operator!=(const NameInfo& info);
Ilya Sherman 2014/06/13 21:13:49 Are these operators still needed, now that you've
Pritam Nikam 2014/06/14 10:27:03 Done. Removed both operators == & !=, as these are
27 bool EqualsIgnoreCase(const NameInfo& info);
Ilya Sherman 2014/06/13 21:13:49 nit: Please leave a blank line before this method
Pritam Nikam 2014/06/14 10:27:03 Done.
25 28
26 // FormGroup: 29 // FormGroup:
27 virtual base::string16 GetRawInfo(ServerFieldType type) const OVERRIDE; 30 virtual base::string16 GetRawInfo(ServerFieldType type) const OVERRIDE;
28 virtual void SetRawInfo(ServerFieldType type, 31 virtual void SetRawInfo(ServerFieldType type,
29 const base::string16& value) OVERRIDE; 32 const base::string16& value) OVERRIDE;
30 33
31 private: 34 private:
32 // FormGroup: 35 // FormGroup:
33 virtual void GetSupportedTypes( 36 virtual void GetSupportedTypes(
34 ServerFieldTypeSet* supported_types) const OVERRIDE; 37 ServerFieldTypeSet* supported_types) const OVERRIDE;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // FormGroup: 95 // FormGroup:
93 virtual void GetSupportedTypes( 96 virtual void GetSupportedTypes(
94 ServerFieldTypeSet* supported_types) const OVERRIDE; 97 ServerFieldTypeSet* supported_types) const OVERRIDE;
95 98
96 base::string16 company_name_; 99 base::string16 company_name_;
97 }; 100 };
98 101
99 } // namespace autofill 102 } // namespace autofill
100 103
101 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_ 104 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_profile_unittest.cc ('k') | components/autofill/core/browser/contact_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698