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 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |