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

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

Issue 12091081: [Sync] Add full history sync experiment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 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
« no previous file with comments | « sync/internal_api/public/util/experiments.h ('k') | no next file » | 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 <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 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 ReadNode autofill_culling_node(&trans); 1352 ReadNode autofill_culling_node(&trans);
1353 if (autofill_culling_node.InitByClientTagLookup( 1353 if (autofill_culling_node.InitByClientTagLookup(
1354 syncer::EXPERIMENTS, 1354 syncer::EXPERIMENTS,
1355 syncer::kAutofillCullingTag) == BaseNode::INIT_OK && 1355 syncer::kAutofillCullingTag) == BaseNode::INIT_OK &&
1356 autofill_culling_node.GetExperimentsSpecifics(). 1356 autofill_culling_node.GetExperimentsSpecifics().
1357 autofill_culling().enabled()) { 1357 autofill_culling().enabled()) {
1358 experiments->autofill_culling = true; 1358 experiments->autofill_culling = true;
1359 found_experiment = true; 1359 found_experiment = true;
1360 } 1360 }
1361 1361
1362 ReadNode full_history_sync_node(&trans);
1363 if (full_history_sync_node.InitByClientTagLookup(
1364 syncer::EXPERIMENTS,
1365 syncer::kFullHistorySyncTag) == BaseNode::INIT_OK &&
1366 full_history_sync_node.GetExperimentsSpecifics().
1367 history_delete_directives().enabled()) {
1368 experiments->full_history_sync = true;
1369 found_experiment = true;
1370 }
1371
1362 return found_experiment; 1372 return found_experiment;
1363 } 1373 }
1364 1374
1365 bool SyncManagerImpl::HasUnsyncedItems() { 1375 bool SyncManagerImpl::HasUnsyncedItems() {
1366 ReadTransaction trans(FROM_HERE, GetUserShare()); 1376 ReadTransaction trans(FROM_HERE, GetUserShare());
1367 return (trans.GetWrappedTrans()->directory()->unsynced_entity_count() != 0); 1377 return (trans.GetWrappedTrans()->directory()->unsynced_entity_count() != 0);
1368 } 1378 }
1369 1379
1370 SyncEncryptionHandler* SyncManagerImpl::GetEncryptionHandler() { 1380 SyncEncryptionHandler* SyncManagerImpl::GetEncryptionHandler() {
1371 return sync_encryption_handler_.get(); 1381 return sync_encryption_handler_.get();
1372 } 1382 }
1373 1383
1374 // static. 1384 // static.
1375 int SyncManagerImpl::GetDefaultNudgeDelay() { 1385 int SyncManagerImpl::GetDefaultNudgeDelay() {
1376 return kDefaultNudgeDelayMilliseconds; 1386 return kDefaultNudgeDelayMilliseconds;
1377 } 1387 }
1378 1388
1379 // static. 1389 // static.
1380 int SyncManagerImpl::GetPreferencesNudgeDelay() { 1390 int SyncManagerImpl::GetPreferencesNudgeDelay() {
1381 return kPreferencesNudgeDelayMilliseconds; 1391 return kPreferencesNudgeDelayMilliseconds;
1382 } 1392 }
1383 1393
1384 } // namespace syncer 1394 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/util/experiments.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698