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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_impl.cc

Issue 2497533003: [sync] Reland of "TwoClientBookmarksSyncTest.Sanity" is flaky (Closed)
Patch Set: Fix TwoClientUssSyncTest.ConflictResolution Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/sync/driver/glue/sync_backend_host_impl.h" 5 #include "components/sync/driver/glue/sync_backend_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); 103 base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
104 if (cl->HasSwitch(switches::kSyncShortInitialRetryOverride)) { 104 if (cl->HasSwitch(switches::kSyncShortInitialRetryOverride)) {
105 factory_switches.backoff_override = 105 factory_switches.backoff_override =
106 EngineComponentsFactory::BACKOFF_SHORT_INITIAL_RETRY_OVERRIDE; 106 EngineComponentsFactory::BACKOFF_SHORT_INITIAL_RETRY_OVERRIDE;
107 } 107 }
108 if (cl->HasSwitch(switches::kSyncEnableGetUpdateAvoidance)) { 108 if (cl->HasSwitch(switches::kSyncEnableGetUpdateAvoidance)) {
109 factory_switches.pre_commit_updates_policy = 109 factory_switches.pre_commit_updates_policy =
110 EngineComponentsFactory::FORCE_ENABLE_PRE_COMMIT_UPDATE_AVOIDANCE; 110 EngineComponentsFactory::FORCE_ENABLE_PRE_COMMIT_UPDATE_AVOIDANCE;
111 } 111 }
112 if (cl->HasSwitch(switches::kSyncShortNudgeDelayForTest)) {
113 factory_switches.nudge_delay =
114 EngineComponentsFactory::NudgeDelay::SHORT_NUDGE_DELAY;
115 }
112 116
113 std::map<ModelType, int64_t> invalidation_versions; 117 std::map<ModelType, int64_t> invalidation_versions;
114 sync_prefs_->GetInvalidationVersions(&invalidation_versions); 118 sync_prefs_->GetInvalidationVersions(&invalidation_versions);
115 119
116 std::unique_ptr<DoInitializeOptions> init_opts(new DoInitializeOptions( 120 std::unique_ptr<DoInitializeOptions> init_opts(new DoInitializeOptions(
117 sync_thread_->message_loop(), registrar_.get(), workers, 121 sync_thread_->message_loop(), registrar_.get(), workers,
118 sync_client_->GetExtensionsActivity(), event_handler, sync_service_url, 122 sync_client_->GetExtensionsActivity(), event_handler, sync_service_url,
119 sync_user_agent, http_post_provider_factory_getter.Run( 123 sync_user_agent, http_post_provider_factory_getter.Run(
120 core_->GetRequestContextCancelationSignal()), 124 core_->GetRequestContextCancelationSignal()),
121 credentials, invalidator_ ? invalidator_->GetInvalidatorClientId() : "", 125 credentials, invalidator_ ? invalidator_->GetInvalidatorClientId() : "",
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 const SyncManager::ClearServerDataCallback& frontend_callback) { 809 const SyncManager::ClearServerDataCallback& frontend_callback) {
806 DCHECK(ui_thread_->BelongsToCurrentThread()); 810 DCHECK(ui_thread_->BelongsToCurrentThread());
807 frontend_callback.Run(); 811 frontend_callback.Run();
808 } 812 }
809 813
810 } // namespace syncer 814 } // namespace syncer
811 815
812 #undef SDVLOG 816 #undef SDVLOG
813 817
814 #undef SLOG 818 #undef SLOG
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/two_client_uss_sync_test.cc ('k') | components/sync/driver/sync_driver_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698