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

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

Issue 2494633005: Revert of [sync] "TwoClientBookmarksSyncTest.Sanity" is flaky (Closed)
Patch Set: 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); 105 base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
106 if (cl->HasSwitch(switches::kSyncShortInitialRetryOverride)) { 106 if (cl->HasSwitch(switches::kSyncShortInitialRetryOverride)) {
107 factory_switches.backoff_override = 107 factory_switches.backoff_override =
108 EngineComponentsFactory::BACKOFF_SHORT_INITIAL_RETRY_OVERRIDE; 108 EngineComponentsFactory::BACKOFF_SHORT_INITIAL_RETRY_OVERRIDE;
109 } 109 }
110 if (cl->HasSwitch(switches::kSyncEnableGetUpdateAvoidance)) { 110 if (cl->HasSwitch(switches::kSyncEnableGetUpdateAvoidance)) {
111 factory_switches.pre_commit_updates_policy = 111 factory_switches.pre_commit_updates_policy =
112 EngineComponentsFactory::FORCE_ENABLE_PRE_COMMIT_UPDATE_AVOIDANCE; 112 EngineComponentsFactory::FORCE_ENABLE_PRE_COMMIT_UPDATE_AVOIDANCE;
113 } 113 }
114 if (cl->HasSwitch(switches::kSyncShortNudgeDelayForTest)) {
115 factory_switches.nudge_delay =
116 EngineComponentsFactory::NudgeDelay::SHORT_NUDGE_DELAY;
117 }
118 114
119 std::map<ModelType, int64_t> invalidation_versions; 115 std::map<ModelType, int64_t> invalidation_versions;
120 sync_prefs_->GetInvalidationVersions(&invalidation_versions); 116 sync_prefs_->GetInvalidationVersions(&invalidation_versions);
121 117
122 std::unique_ptr<DoInitializeOptions> init_opts(new DoInitializeOptions( 118 std::unique_ptr<DoInitializeOptions> init_opts(new DoInitializeOptions(
123 registrar_->sync_thread()->message_loop(), registrar_.get(), workers, 119 registrar_->sync_thread()->message_loop(), registrar_.get(), workers,
124 sync_client_->GetExtensionsActivity(), event_handler, sync_service_url, 120 sync_client_->GetExtensionsActivity(), event_handler, sync_service_url,
125 sync_user_agent, http_post_provider_factory_getter.Run( 121 sync_user_agent, http_post_provider_factory_getter.Run(
126 core_->GetRequestContextCancelationSignal()), 122 core_->GetRequestContextCancelationSignal()),
127 credentials, invalidator_ ? invalidator_->GetInvalidatorClientId() : "", 123 credentials, invalidator_ ? invalidator_->GetInvalidatorClientId() : "",
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 const SyncManager::ClearServerDataCallback& frontend_callback) { 818 const SyncManager::ClearServerDataCallback& frontend_callback) {
823 DCHECK(ui_thread_->BelongsToCurrentThread()); 819 DCHECK(ui_thread_->BelongsToCurrentThread());
824 frontend_callback.Run(); 820 frontend_callback.Run();
825 } 821 }
826 822
827 } // namespace syncer 823 } // namespace syncer
828 824
829 #undef SDVLOG 825 #undef SDVLOG
830 826
831 #undef SLOG 827 #undef SLOG
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/two_client_bookmarks_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