| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 CHECK(database_dir.CreateUniqueTempDir()); | 286 CHECK(database_dir.CreateUniqueTempDir()); |
| 287 | 287 |
| 288 // Set up model type parameters. | 288 // Set up model type parameters. |
| 289 const ModelTypeSet model_types = ModelTypeSet::All(); | 289 const ModelTypeSet model_types = ModelTypeSet::All(); |
| 290 ModelSafeRoutingInfo routing_info; | 290 ModelSafeRoutingInfo routing_info; |
| 291 for (ModelTypeSet::Iterator it = model_types.First(); | 291 for (ModelTypeSet::Iterator it = model_types.First(); |
| 292 it.Good(); it.Inc()) { | 292 it.Good(); it.Inc()) { |
| 293 routing_info[it.Get()] = GROUP_PASSIVE; | 293 routing_info[it.Get()] = GROUP_PASSIVE; |
| 294 } | 294 } |
| 295 scoped_refptr<PassiveModelWorker> passive_model_safe_worker = | 295 scoped_refptr<PassiveModelWorker> passive_model_safe_worker = |
| 296 new PassiveModelWorker(&sync_loop); | 296 new PassiveModelWorker(&sync_loop, NULL); |
| 297 std::vector<ModelSafeWorker*> workers; | 297 std::vector<ModelSafeWorker*> workers; |
| 298 workers.push_back(passive_model_safe_worker.get()); | 298 workers.push_back(passive_model_safe_worker.get()); |
| 299 | 299 |
| 300 // Set up sync manager. | 300 // Set up sync manager. |
| 301 SyncManagerFactory sync_manager_factory; | 301 SyncManagerFactory sync_manager_factory; |
| 302 scoped_ptr<SyncManager> sync_manager = | 302 scoped_ptr<SyncManager> sync_manager = |
| 303 sync_manager_factory.CreateSyncManager("sync_client manager"); | 303 sync_manager_factory.CreateSyncManager("sync_client manager"); |
| 304 LoggingJsEventHandler js_event_handler; | 304 LoggingJsEventHandler js_event_handler; |
| 305 const char kSyncServerAndPath[] = "clients4.google.com/chrome-sync/dev"; | 305 const char kSyncServerAndPath[] = "clients4.google.com/chrome-sync/dev"; |
| 306 int kSyncServerPort = 443; | 306 int kSyncServerPort = 443; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |