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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 model_types.Put(FAVICON_IMAGES); | 316 model_types.Put(FAVICON_IMAGES); |
317 model_types.Put(FAVICON_TRACKING); | 317 model_types.Put(FAVICON_TRACKING); |
318 | 318 |
319 ModelSafeRoutingInfo routing_info; | 319 ModelSafeRoutingInfo routing_info; |
320 for (ModelTypeSet::Iterator it = model_types.First(); | 320 for (ModelTypeSet::Iterator it = model_types.First(); |
321 it.Good(); it.Inc()) { | 321 it.Good(); it.Inc()) { |
322 routing_info[it.Get()] = GROUP_PASSIVE; | 322 routing_info[it.Get()] = GROUP_PASSIVE; |
323 } | 323 } |
324 scoped_refptr<PassiveModelWorker> passive_model_safe_worker = | 324 scoped_refptr<PassiveModelWorker> passive_model_safe_worker = |
325 new PassiveModelWorker(&sync_loop, NULL); | 325 new PassiveModelWorker(&sync_loop, NULL); |
326 std::vector<ModelSafeWorker*> workers; | 326 std::vector<scoped_refptr<ModelSafeWorker> > workers; |
327 workers.push_back(passive_model_safe_worker.get()); | 327 workers.push_back(passive_model_safe_worker); |
328 | 328 |
329 // Set up sync manager. | 329 // Set up sync manager. |
330 SyncManagerFactory sync_manager_factory; | 330 SyncManagerFactory sync_manager_factory; |
331 scoped_ptr<SyncManager> sync_manager = | 331 scoped_ptr<SyncManager> sync_manager = |
332 sync_manager_factory.CreateSyncManager("sync_client manager"); | 332 sync_manager_factory.CreateSyncManager("sync_client manager"); |
333 LoggingJsEventHandler js_event_handler; | 333 LoggingJsEventHandler js_event_handler; |
334 const char kSyncServerAndPath[] = "clients4.google.com/chrome-sync/dev"; | 334 const char kSyncServerAndPath[] = "clients4.google.com/chrome-sync/dev"; |
335 int kSyncServerPort = 443; | 335 int kSyncServerPort = 443; |
336 bool kUseSsl = true; | 336 bool kUseSsl = true; |
337 // Used only by InitialProcessMetadata(), so it's okay to leave this as NULL. | 337 // Used only by InitialProcessMetadata(), so it's okay to leave this as NULL. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 io_thread.Stop(); | 391 io_thread.Stop(); |
392 return 0; | 392 return 0; |
393 } | 393 } |
394 | 394 |
395 } // namespace | 395 } // namespace |
396 } // namespace syncer | 396 } // namespace syncer |
397 | 397 |
398 int main(int argc, char* argv[]) { | 398 int main(int argc, char* argv[]) { |
399 return syncer::SyncClientMain(argc, argv); | 399 return syncer::SyncClientMain(argc, argv); |
400 } | 400 } |
OLD | NEW |