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

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

Issue 14344002: Sync: Turn on full history sync by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix use-after-free. Created 7 years, 7 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 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 ReadNode autofill_culling_node(&trans); 1359 ReadNode autofill_culling_node(&trans);
1360 if (autofill_culling_node.InitByClientTagLookup( 1360 if (autofill_culling_node.InitByClientTagLookup(
1361 syncer::EXPERIMENTS, 1361 syncer::EXPERIMENTS,
1362 syncer::kAutofillCullingTag) == BaseNode::INIT_OK && 1362 syncer::kAutofillCullingTag) == BaseNode::INIT_OK &&
1363 autofill_culling_node.GetExperimentsSpecifics(). 1363 autofill_culling_node.GetExperimentsSpecifics().
1364 autofill_culling().enabled()) { 1364 autofill_culling().enabled()) {
1365 experiments->autofill_culling = true; 1365 experiments->autofill_culling = true;
1366 found_experiment = true; 1366 found_experiment = true;
1367 } 1367 }
1368 1368
1369 ReadNode full_history_sync_node(&trans);
1370 if (full_history_sync_node.InitByClientTagLookup(
1371 syncer::EXPERIMENTS,
1372 syncer::kFullHistorySyncTag) == BaseNode::INIT_OK &&
1373 full_history_sync_node.GetExperimentsSpecifics().
1374 history_delete_directives().enabled()) {
1375 experiments->full_history_sync = true;
1376 found_experiment = true;
1377 }
1378
1379 ReadNode favicon_sync_node(&trans); 1369 ReadNode favicon_sync_node(&trans);
1380 if (favicon_sync_node.InitByClientTagLookup( 1370 if (favicon_sync_node.InitByClientTagLookup(
1381 syncer::EXPERIMENTS, 1371 syncer::EXPERIMENTS,
1382 syncer::kFaviconSyncTag) == BaseNode::INIT_OK) { 1372 syncer::kFaviconSyncTag) == BaseNode::INIT_OK) {
1383 experiments->favicon_sync = favicon_sync_node.GetExperimentsSpecifics(). 1373 experiments->favicon_sync = favicon_sync_node.GetExperimentsSpecifics().
1384 favicon_sync().enabled(); 1374 favicon_sync().enabled();
1385 experiments->favicon_sync_limit = 1375 experiments->favicon_sync_limit =
1386 favicon_sync_node.GetExperimentsSpecifics().favicon_sync(). 1376 favicon_sync_node.GetExperimentsSpecifics().favicon_sync().
1387 favicon_sync_limit(); 1377 favicon_sync_limit();
1388 found_experiment = true; 1378 found_experiment = true;
(...skipping 15 matching lines...) Expand all
1404 int SyncManagerImpl::GetDefaultNudgeDelay() { 1394 int SyncManagerImpl::GetDefaultNudgeDelay() {
1405 return kDefaultNudgeDelayMilliseconds; 1395 return kDefaultNudgeDelayMilliseconds;
1406 } 1396 }
1407 1397
1408 // static. 1398 // static.
1409 int SyncManagerImpl::GetPreferencesNudgeDelay() { 1399 int SyncManagerImpl::GetPreferencesNudgeDelay() {
1410 return kPreferencesNudgeDelayMilliseconds; 1400 return kPreferencesNudgeDelayMilliseconds;
1411 } 1401 }
1412 1402
1413 } // namespace syncer 1403 } // 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