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

Side by Side Diff: sync/tools/sync_client.cc

Issue 12847003: Separate invalidator and sync client ID (part 2/2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix sync_listen_notifications utility Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/tools/null_invalidation_state_tracker.cc ('k') | sync/tools/sync_listen_notifications.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « sync/tools/null_invalidation_state_tracker.cc ('k') | sync/tools/sync_listen_notifications.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698