OLD | NEW |
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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 } | 1028 } |
1029 | 1029 |
1030 const std::string SyncManagerImpl::cache_guid() { | 1030 const std::string SyncManagerImpl::cache_guid() { |
1031 DCHECK(initialized_); | 1031 DCHECK(initialized_); |
1032 return directory()->cache_guid(); | 1032 return directory()->cache_guid(); |
1033 } | 1033 } |
1034 | 1034 |
1035 bool SyncManagerImpl::ReceivedExperiment(Experiments* experiments) { | 1035 bool SyncManagerImpl::ReceivedExperiment(Experiments* experiments) { |
1036 ReadTransaction trans(FROM_HERE, GetUserShare()); | 1036 ReadTransaction trans(FROM_HERE, GetUserShare()); |
1037 ReadNode nigori_node(&trans); | 1037 ReadNode nigori_node(&trans); |
1038 if (nigori_node.InitByTagLookup(kNigoriTag) != BaseNode::INIT_OK) { | 1038 if (nigori_node.InitTypeRoot(NIGORI) != BaseNode::INIT_OK) { |
1039 DVLOG(1) << "Couldn't find Nigori node."; | 1039 DVLOG(1) << "Couldn't find Nigori node."; |
1040 return false; | 1040 return false; |
1041 } | 1041 } |
1042 bool found_experiment = false; | 1042 bool found_experiment = false; |
1043 | 1043 |
1044 ReadNode favicon_sync_node(&trans); | 1044 ReadNode favicon_sync_node(&trans); |
1045 if (favicon_sync_node.InitByClientTagLookup( | 1045 if (favicon_sync_node.InitByClientTagLookup( |
1046 syncer::EXPERIMENTS, | 1046 syncer::EXPERIMENTS, |
1047 syncer::kFaviconSyncTag) == BaseNode::INIT_OK) { | 1047 syncer::kFaviconSyncTag) == BaseNode::INIT_OK) { |
1048 experiments->favicon_sync_limit = | 1048 experiments->favicon_sync_limit = |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1142 int SyncManagerImpl::GetDefaultNudgeDelay() { | 1142 int SyncManagerImpl::GetDefaultNudgeDelay() { |
1143 return kDefaultNudgeDelayMilliseconds; | 1143 return kDefaultNudgeDelayMilliseconds; |
1144 } | 1144 } |
1145 | 1145 |
1146 // static. | 1146 // static. |
1147 int SyncManagerImpl::GetPreferencesNudgeDelay() { | 1147 int SyncManagerImpl::GetPreferencesNudgeDelay() { |
1148 return kPreferencesNudgeDelayMilliseconds; | 1148 return kPreferencesNudgeDelayMilliseconds; |
1149 } | 1149 } |
1150 | 1150 |
1151 } // namespace syncer | 1151 } // namespace syncer |
OLD | NEW |