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

Side by Side Diff: components/autofill/core/browser/options_util.cc

Issue 1785923010: Remove kAutofillWalletSyncExperimentEnabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/autofill/core/browser/options_util.h" 5 #include "components/autofill/core/browser/options_util.h"
6 6
7 #include "components/autofill/core/browser/personal_data_manager.h"
8 #include "components/autofill/core/common/autofill_pref_names.h"
9 #include "components/sync_driver/sync_service.h" 7 #include "components/sync_driver/sync_service.h"
10 8
11 namespace autofill { 9 namespace autofill {
12 10
13 bool WalletIntegrationAvailable( 11 bool WalletIntegrationAvailable(sync_driver::SyncService* sync_service) {
14 sync_driver::SyncService* sync_service, 12 return sync_service && sync_service->CanSyncStart() &&
15 const PersonalDataManager& personal_data_manager) { 13 sync_service->GetPreferredDataTypes().Has(syncer::AUTOFILL_PROFILE);
Evan Stade 2016/03/14 23:01:58 so why would it not have this now? users with a go
Justin Donnelly 2016/03/15 17:09:45 This indicates whether the user has the autofill s
16 if (!(sync_service && sync_service->CanSyncStart() &&
17 sync_service->GetPreferredDataTypes().Has(syncer::AUTOFILL_PROFILE))) {
18 return false;
19 }
20
21 return personal_data_manager.IsExperimentalWalletIntegrationEnabled();
22 } 14 }
23 15
24 } // namespace autofill 16 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698