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

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

Issue 302173004: sync: Specialize functions that fetch type root (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/GET_BY_SERVER_TAG_DEPRECATED/GET_BY_SERVER_TAG/ Created 6 years, 6 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 | Annotate | Revision Log
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 <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
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
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
OLDNEW
« no previous file with comments | « sync/internal_api/sync_encryption_handler_impl_unittest.cc ('k') | sync/internal_api/sync_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698