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

Unified Diff: trunk/src/sync/internal_api/internal_components_factory_impl.cc

Issue 23658030: Revert 222154 "sync: Gracefully handle very early shutdown" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/sync/internal_api/internal_components_factory_impl.cc
===================================================================
--- trunk/src/sync/internal_api/internal_components_factory_impl.cc (revision 222204)
+++ trunk/src/sync/internal_api/internal_components_factory_impl.cc (working copy)
@@ -21,20 +21,15 @@
InternalComponentsFactoryImpl::~InternalComponentsFactoryImpl() { }
scoped_ptr<SyncScheduler> InternalComponentsFactoryImpl::BuildScheduler(
- const std::string& name,
- sessions::SyncSessionContext* context,
- CancelationSignal* cancelation_signal) {
+ const std::string& name, sessions::SyncSessionContext* context) {
scoped_ptr<BackoffDelayProvider> delay(BackoffDelayProvider::FromDefaults());
if (switches_.backoff_override == BACKOFF_SHORT_INITIAL_RETRY_OVERRIDE)
delay.reset(BackoffDelayProvider::WithShortInitialRetryOverride());
- return scoped_ptr<SyncScheduler>(new SyncSchedulerImpl(
- name,
- delay.release(),
- context,
- new Syncer(cancelation_signal)));
+ return scoped_ptr<SyncScheduler>(
+ new SyncSchedulerImpl(name, delay.release(), context, new Syncer()));
}
scoped_ptr<sessions::SyncSessionContext>
« no previous file with comments | « trunk/src/sync/engine/syncer_unittest.cc ('k') | trunk/src/sync/internal_api/public/base/cancelation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698