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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 invalidator_factory.GetInvalidatorClientId(), |
342 kRestoredKeyForBootstrapping, | 342 kRestoredKeyForBootstrapping, |
343 kRestoredKeystoreKeyForBootstrapping, | 343 kRestoredKeystoreKeyForBootstrapping, |
344 scoped_ptr<InternalComponentsFactory>( | 344 scoped_ptr<InternalComponentsFactory>( |
345 new InternalComponentsFactoryImpl(factory_switches)), | 345 new InternalComponentsFactoryImpl(factory_switches)), |
346 &null_encryptor, | 346 &null_encryptor, |
347 &unrecoverable_error_handler, | 347 &unrecoverable_error_handler, |
348 &LogUnrecoverableErrorContext); | 348 &LogUnrecoverableErrorContext, false); |
349 // TODO(akalin): Avoid passing in model parameters multiple times by | 349 // TODO(akalin): Avoid passing in model parameters multiple times by |
350 // organizing handling of model types. | 350 // organizing handling of model types. |
351 sync_manager->UpdateEnabledTypes(model_types); | 351 sync_manager->UpdateEnabledTypes(model_types); |
352 sync_manager->StartSyncingNormally(routing_info); | 352 sync_manager->StartSyncingNormally(routing_info); |
353 | 353 |
354 sync_loop.Run(); | 354 sync_loop.Run(); |
355 | 355 |
356 io_thread.Stop(); | 356 io_thread.Stop(); |
357 return 0; | 357 return 0; |
358 } | 358 } |
359 | 359 |
360 } // namespace | 360 } // namespace |
361 } // namespace syncer | 361 } // namespace syncer |
362 | 362 |
363 int main(int argc, char* argv[]) { | 363 int main(int argc, char* argv[]) { |
364 return syncer::SyncClientMain(argc, argv); | 364 return syncer::SyncClientMain(argc, argv); |
365 } | 365 } |
OLD | NEW |