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

Side by Side Diff: sync/internal_api/sync_manager_impl.cc

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
« no previous file with comments | « sync/internal_api/public/util/experiments.h ('k') | sync/protocol/experiments_specifics.proto » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "sync/internal_api/sync_manager_impl.h" 5 #include "sync/internal_api/sync_manager_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 syncer::EXPERIMENTS, syncer::kGCMInvalidationsTag) == 983 syncer::EXPERIMENTS, syncer::kGCMInvalidationsTag) ==
984 BaseNode::INIT_OK) { 984 BaseNode::INIT_OK) {
985 const sync_pb::GcmInvalidationsFlags& gcm_invalidations = 985 const sync_pb::GcmInvalidationsFlags& gcm_invalidations =
986 gcm_invalidations_node.GetExperimentsSpecifics().gcm_invalidations(); 986 gcm_invalidations_node.GetExperimentsSpecifics().gcm_invalidations();
987 if (gcm_invalidations.has_enabled()) { 987 if (gcm_invalidations.has_enabled()) {
988 experiments->gcm_invalidations_enabled = gcm_invalidations.enabled(); 988 experiments->gcm_invalidations_enabled = gcm_invalidations.enabled();
989 found_experiment = true; 989 found_experiment = true;
990 } 990 }
991 } 991 }
992 992
993 ReadNode wallet_sync_node(&trans);
994 if (wallet_sync_node.InitByClientTagLookup(
995 syncer::EXPERIMENTS, syncer::kWalletSyncTag) == BaseNode::INIT_OK) {
996 const sync_pb::WalletSyncFlags& wallet_sync =
997 wallet_sync_node.GetExperimentsSpecifics().wallet_sync();
998 if (wallet_sync.has_enabled()) {
999 experiments->wallet_sync_enabled = wallet_sync.enabled();
1000 found_experiment = true;
1001 }
1002 }
1003
1004 return found_experiment; 993 return found_experiment;
1005 } 994 }
1006 995
1007 bool SyncManagerImpl::HasUnsyncedItems() { 996 bool SyncManagerImpl::HasUnsyncedItems() {
1008 ReadTransaction trans(FROM_HERE, GetUserShare()); 997 ReadTransaction trans(FROM_HERE, GetUserShare());
1009 return (trans.GetWrappedTrans()->directory()->unsynced_entity_count() != 0); 998 return (trans.GetWrappedTrans()->directory()->unsynced_entity_count() != 0);
1010 } 999 }
1011 1000
1012 SyncEncryptionHandler* SyncManagerImpl::GetEncryptionHandler() { 1001 SyncEncryptionHandler* SyncManagerImpl::GetEncryptionHandler() {
1013 return sync_encryption_handler_.get(); 1002 return sync_encryption_handler_.get();
(...skipping 24 matching lines...) Expand all
1038 } 1027 }
1039 1028
1040 void SyncManagerImpl::ClearServerData(const ClearServerDataCallback& callback) { 1029 void SyncManagerImpl::ClearServerData(const ClearServerDataCallback& callback) {
1041 DCHECK(thread_checker_.CalledOnValidThread()); 1030 DCHECK(thread_checker_.CalledOnValidThread());
1042 scheduler_->Start(SyncScheduler::CLEAR_SERVER_DATA_MODE, base::Time()); 1031 scheduler_->Start(SyncScheduler::CLEAR_SERVER_DATA_MODE, base::Time());
1043 ClearParams params(callback); 1032 ClearParams params(callback);
1044 scheduler_->ScheduleClearServerData(params); 1033 scheduler_->ScheduleClearServerData(params);
1045 } 1034 }
1046 1035
1047 } // namespace syncer 1036 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/util/experiments.h ('k') | sync/protocol/experiments_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698