| 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 <cstddef> | 5 #include <cstddef> |
| 6 #include <cstdio> | 6 #include <cstdio> |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 kSyncServerAndPath, | 331 kSyncServerAndPath, |
| 332 kSyncServerPort, | 332 kSyncServerPort, |
| 333 kUseSsl, | 333 kUseSsl, |
| 334 post_factory.Pass(), | 334 post_factory.Pass(), |
| 335 workers, | 335 workers, |
| 336 extensions_activity_monitor, | 336 extensions_activity_monitor, |
| 337 &change_delegate, | 337 &change_delegate, |
| 338 credentials, | 338 credentials, |
| 339 scoped_ptr<Invalidator>( | 339 scoped_ptr<Invalidator>( |
| 340 invalidator_factory.CreateInvalidator()), | 340 invalidator_factory.CreateInvalidator()), |
| 341 invalidator_factory.GetInvalidatorClientId(), |
| 341 kRestoredKeyForBootstrapping, | 342 kRestoredKeyForBootstrapping, |
| 342 kRestoredKeystoreKeyForBootstrapping, | 343 kRestoredKeystoreKeyForBootstrapping, |
| 343 scoped_ptr<InternalComponentsFactory>( | 344 scoped_ptr<InternalComponentsFactory>( |
| 344 new InternalComponentsFactoryImpl(factory_switches)), | 345 new InternalComponentsFactoryImpl(factory_switches)), |
| 345 &null_encryptor, | 346 &null_encryptor, |
| 346 &unrecoverable_error_handler, | 347 &unrecoverable_error_handler, |
| 347 &LogUnrecoverableErrorContext); | 348 &LogUnrecoverableErrorContext); |
| 348 // TODO(akalin): Avoid passing in model parameters multiple times by | 349 // TODO(akalin): Avoid passing in model parameters multiple times by |
| 349 // organizing handling of model types. | 350 // organizing handling of model types. |
| 350 sync_manager->UpdateEnabledTypes(model_types); | 351 sync_manager->UpdateEnabledTypes(model_types); |
| 351 sync_manager->StartSyncingNormally(routing_info); | 352 sync_manager->StartSyncingNormally(routing_info); |
| 352 | 353 |
| 353 sync_loop.Run(); | 354 sync_loop.Run(); |
| 354 | 355 |
| 355 io_thread.Stop(); | 356 io_thread.Stop(); |
| 356 return 0; | 357 return 0; |
| 357 } | 358 } |
| 358 | 359 |
| 359 } // namespace | 360 } // namespace |
| 360 } // namespace syncer | 361 } // namespace syncer |
| 361 | 362 |
| 362 int main(int argc, char* argv[]) { | 363 int main(int argc, char* argv[]) { |
| 363 return syncer::SyncClientMain(argc, argv); | 364 return syncer::SyncClientMain(argc, argv); |
| 364 } | 365 } |
| OLD | NEW |