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

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

Issue 1785923010: Remove kAutofillWalletSyncExperimentEnabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mark wallet_sync as obsolete, remove wallet_sync_enabled. Created 4 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
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_PERSONAL_DATA_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // be associated with the user. More concretely, it checks if there are any 225 // be associated with the user. More concretely, it checks if there are any
226 // addresses with this country or if the user's system timezone is in the 226 // addresses with this country or if the user's system timezone is in the
227 // given country. 227 // given country.
228 virtual bool IsCountryOfInterest(const std::string& country_code) const; 228 virtual bool IsCountryOfInterest(const std::string& country_code) const;
229 229
230 // Returns our best guess for the country a user is likely to use when 230 // Returns our best guess for the country a user is likely to use when
231 // inputting a new address. The value is calculated once and cached, so it 231 // inputting a new address. The value is calculated once and cached, so it
232 // will only update when Chrome is restarted. 232 // will only update when Chrome is restarted.
233 virtual const std::string& GetDefaultCountryCodeForNewAddress() const; 233 virtual const std::string& GetDefaultCountryCodeForNewAddress() const;
234 234
235 // Returns true if the wallet integration feature is enabled. Note that the
236 // feature can still disabled by a user pref.
237 bool IsExperimentalWalletIntegrationEnabled() const;
238
239 // De-dupe credit card suggestions. Full server cards are prefered over their 235 // De-dupe credit card suggestions. Full server cards are prefered over their
240 // local duplicates, and local cards are preferred over their masked server 236 // local duplicates, and local cards are preferred over their masked server
241 // card duplicate. 237 // card duplicate.
242 static void DedupeCreditCardSuggestions( 238 static void DedupeCreditCardSuggestions(
243 std::list<const CreditCard*>* cards_to_suggest); 239 std::list<const CreditCard*>* cards_to_suggest);
244 240
245 protected: 241 protected:
246 // Only PersonalDataManagerFactory and certain tests can create instances of 242 // Only PersonalDataManagerFactory and certain tests can create instances of
247 // PersonalDataManager. 243 // PersonalDataManager.
248 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast); 244 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast);
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 408
413 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled. 409 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled.
414 scoped_ptr<BooleanPrefMember> wallet_enabled_pref_; 410 scoped_ptr<BooleanPrefMember> wallet_enabled_pref_;
415 411
416 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 412 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
417 }; 413 };
418 414
419 } // namespace autofill 415 } // namespace autofill
420 416
421 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 417 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/options_util_unittest.cc ('k') | components/autofill/core/browser/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698