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

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

Issue 1931123002: [Autofill] Make PersonalDataManager::OverwriteWith case sensitive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_profile.cc » ('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 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_AUTOFILL_PROFILE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <iosfwd> 10 #include <iosfwd>
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // Returns true if the data in this AutofillProfile is a subset of the data in 107 // Returns true if the data in this AutofillProfile is a subset of the data in
108 // |profile|. 108 // |profile|.
109 bool IsSubsetOf(const AutofillProfile& profile, 109 bool IsSubsetOf(const AutofillProfile& profile,
110 const std::string& app_locale) const; 110 const std::string& app_locale) const;
111 111
112 // Like IsSubsetOf, but only considers the types present in |types|. 112 // Like IsSubsetOf, but only considers the types present in |types|.
113 bool IsSubsetOfForFieldSet(const AutofillProfile& profile, 113 bool IsSubsetOfForFieldSet(const AutofillProfile& profile,
114 const std::string& app_locale, 114 const std::string& app_locale,
115 const ServerFieldTypeSet& types) const; 115 const ServerFieldTypeSet& types) const;
116 116
117 // Overwrites the field data in |profile| with this Profile. Returns |true| if 117 // Overwrites the field data in this Profile with the non-empty fields in
118 // at least one field was overwritten. 118 // |profile|. Returns |true| if at least one field was overwritten.
119 // The usage stats, the origin and the language code are always updated and
120 // have no effect on the return value.
119 bool OverwriteWith(const AutofillProfile& profile, 121 bool OverwriteWith(const AutofillProfile& profile,
120 const std::string& app_locale); 122 const std::string& app_locale);
121 123
122 // Saves info from |profile| into |this|, provided |this| and |profile| do not 124 // Saves info from |profile| into |this|, provided |this| and |profile| do not
123 // have any direct conflicts (i.e. data is present but different). Will not 125 // have any direct conflicts (i.e. data is present but different). Will not
124 // make changes if |this| is verified and |profile| is not. Returns true if 126 // make changes if |this| is verified and |profile| is not. Returns true if
125 // |this| and |profile| are similar. 127 // |this| and |profile| are similar.
126 bool SaveAdditionalInfo(const AutofillProfile& profile, 128 bool SaveAdditionalInfo(const AutofillProfile& profile,
127 const std::string& app_locale); 129 const std::string& app_locale);
128 130
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // a hash of the contents. 249 // a hash of the contents.
248 std::string server_id_; 250 std::string server_id_;
249 }; 251 };
250 252
251 // So we can compare AutofillProfiles with EXPECT_EQ(). 253 // So we can compare AutofillProfiles with EXPECT_EQ().
252 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); 254 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile);
253 255
254 } // namespace autofill 256 } // namespace autofill
255 257
256 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ 258 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698