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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 | « components/autofill/core/browser/DEPS ('k') | components/autofill/core/browser/webdata/DEPS » ('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 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/autofill_wallet_data_type_controller. h" 5 #include "components/autofill/core/browser/autofill_wallet_data_type_controller. h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "components/autofill/core/browser/personal_data_manager.h" 8 #include "components/autofill/core/browser/personal_data_manager.h"
9 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 9 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
10 #include "components/autofill/core/common/autofill_pref_names.h" 10 #include "components/autofill/core/common/autofill_pref_names.h"
11 #include "components/prefs/pref_service.h" 11 #include "components/prefs/pref_service.h"
12 #include "components/sync/api/sync_error.h"
13 #include "components/sync/api/syncable_service.h"
12 #include "components/sync_driver/sync_client.h" 14 #include "components/sync_driver/sync_client.h"
13 #include "components/sync_driver/sync_service.h" 15 #include "components/sync_driver/sync_service.h"
14 #include "sync/api/sync_error.h"
15 #include "sync/api/syncable_service.h"
16 16
17 namespace browser_sync { 17 namespace browser_sync {
18 18
19 AutofillWalletDataTypeController::AutofillWalletDataTypeController( 19 AutofillWalletDataTypeController::AutofillWalletDataTypeController(
20 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, 20 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
21 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, 21 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
22 const base::Closure& error_callback, 22 const base::Closure& error_callback,
23 sync_driver::SyncClient* sync_client, 23 sync_driver::SyncClient* sync_client,
24 syncer::ModelType model_type, 24 syncer::ModelType model_type,
25 const scoped_refptr<autofill::AutofillWebDataService>& web_data_service) 25 const scoped_refptr<autofill::AutofillWebDataService>& web_data_service)
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 bool AutofillWalletDataTypeController::IsEnabled() { 136 bool AutofillWalletDataTypeController::IsEnabled() {
137 DCHECK(ui_thread_->BelongsToCurrentThread()); 137 DCHECK(ui_thread_->BelongsToCurrentThread());
138 138
139 // Require the user-visible pref to be enabled to sync Wallet data/metadata. 139 // Require the user-visible pref to be enabled to sync Wallet data/metadata.
140 PrefService* ps = sync_client_->GetPrefService(); 140 PrefService* ps = sync_client_->GetPrefService();
141 return ps->GetBoolean(autofill::prefs::kAutofillWalletImportEnabled); 141 return ps->GetBoolean(autofill::prefs::kAutofillWalletImportEnabled);
142 } 142 }
143 143
144 } // namespace browser_sync 144 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/autofill/core/browser/DEPS ('k') | components/autofill/core/browser/webdata/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698