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

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

Issue 15421011: Use OAuth2 token for sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 6 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
« no previous file with comments | « sync/test/engine/mock_connection_manager.cc ('k') | sync/tools/testserver/xmppserver.py » ('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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « sync/test/engine/mock_connection_manager.cc ('k') | sync/tools/testserver/xmppserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698