| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 const scoped_refptr<MyTestURLRequestContextGetter> context_getter = | 268 const scoped_refptr<MyTestURLRequestContextGetter> context_getter = |
| 269 new MyTestURLRequestContextGetter(io_thread.message_loop_proxy()); | 269 new MyTestURLRequestContextGetter(io_thread.message_loop_proxy()); |
| 270 const notifier::NotifierOptions& notifier_options = | 270 const notifier::NotifierOptions& notifier_options = |
| 271 ParseNotifierOptions(command_line, context_getter); | 271 ParseNotifierOptions(command_line, context_getter); |
| 272 const char kClientInfo[] = "standalone_sync_client"; | 272 const char kClientInfo[] = "standalone_sync_client"; |
| 273 std::string invalidator_id = base::RandBytesAsString(8); | 273 std::string invalidator_id = base::RandBytesAsString(8); |
| 274 NullInvalidationStateTracker null_invalidation_state_tracker; | 274 NullInvalidationStateTracker null_invalidation_state_tracker; |
| 275 scoped_ptr<Invalidator> invalidator(new NonBlockingInvalidator( | 275 scoped_ptr<Invalidator> invalidator(new NonBlockingInvalidator( |
| 276 notifier_options, | 276 notifier_options, |
| 277 invalidator_id, | 277 invalidator_id, |
| 278 null_invalidation_state_tracker.GetAllInvalidationStates(), | 278 null_invalidation_state_tracker.GetSavedInvalidations(), |
| 279 null_invalidation_state_tracker.GetBootstrapData(), | 279 null_invalidation_state_tracker.GetBootstrapData(), |
| 280 WeakHandle<InvalidationStateTracker>( | 280 WeakHandle<InvalidationStateTracker>( |
| 281 null_invalidation_state_tracker.AsWeakPtr()), | 281 null_invalidation_state_tracker.AsWeakPtr()), |
| 282 kClientInfo)); | 282 kClientInfo)); |
| 283 | 283 |
| 284 // Set up database directory for the syncer. | 284 // Set up database directory for the syncer. |
| 285 base::ScopedTempDir database_dir; | 285 base::ScopedTempDir database_dir; |
| 286 CHECK(database_dir.CreateUniqueTempDir()); | 286 CHECK(database_dir.CreateUniqueTempDir()); |
| 287 | 287 |
| 288 // Developers often add types to ModelTypeSet::All() before the server | 288 // Developers often add types to ModelTypeSet::All() before the server |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 io_thread.Stop(); | 387 io_thread.Stop(); |
| 388 return 0; | 388 return 0; |
| 389 } | 389 } |
| 390 | 390 |
| 391 } // namespace | 391 } // namespace |
| 392 } // namespace syncer | 392 } // namespace syncer |
| 393 | 393 |
| 394 int main(int argc, char* argv[]) { | 394 int main(int argc, char* argv[]) { |
| 395 return syncer::SyncClientMain(argc, argv); | 395 return syncer::SyncClientMain(argc, argv); |
| 396 } | 396 } |
| OLD | NEW |