| 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/base64.h" | 10 #include "base/base64.h" |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 workers.push_back(passive_model_safe_worker.get()); | 333 workers.push_back(passive_model_safe_worker.get()); |
| 334 | 334 |
| 335 // Set up sync manager. | 335 // Set up sync manager. |
| 336 SyncManagerFactory sync_manager_factory; | 336 SyncManagerFactory sync_manager_factory; |
| 337 scoped_ptr<SyncManager> sync_manager = | 337 scoped_ptr<SyncManager> sync_manager = |
| 338 sync_manager_factory.CreateSyncManager("sync_client manager"); | 338 sync_manager_factory.CreateSyncManager("sync_client manager"); |
| 339 LoggingJsEventHandler js_event_handler; | 339 LoggingJsEventHandler js_event_handler; |
| 340 const char kSyncServerAndPath[] = "clients4.google.com/chrome-sync/dev"; | 340 const char kSyncServerAndPath[] = "clients4.google.com/chrome-sync/dev"; |
| 341 int kSyncServerPort = 443; | 341 int kSyncServerPort = 443; |
| 342 bool kUseSsl = true; | 342 bool kUseSsl = true; |
| 343 // Used only by RefreshNigori(), so it's okay to leave this as NULL. | 343 // Used only by InitialProcessMetadata(), so it's okay to leave this as NULL. |
| 344 const scoped_refptr<base::TaskRunner> blocking_task_runner = NULL; | 344 const scoped_refptr<base::TaskRunner> blocking_task_runner = NULL; |
| 345 const char kUserAgent[] = "sync_client"; | 345 const char kUserAgent[] = "sync_client"; |
| 346 // TODO(akalin): Replace this with just the context getter once | 346 // TODO(akalin): Replace this with just the context getter once |
| 347 // HttpPostProviderFactory is removed. | 347 // HttpPostProviderFactory is removed. |
| 348 scoped_ptr<HttpPostProviderFactory> post_factory( | 348 scoped_ptr<HttpPostProviderFactory> post_factory( |
| 349 new HttpBridgeFactory(context_getter, kUserAgent)); | 349 new HttpBridgeFactory(context_getter, kUserAgent)); |
| 350 // Used only when committing bookmarks, so it's okay to leave this | 350 // Used only when committing bookmarks, so it's okay to leave this |
| 351 // as NULL. | 351 // as NULL. |
| 352 ExtensionsActivityMonitor* extensions_activity_monitor = NULL; | 352 ExtensionsActivityMonitor* extensions_activity_monitor = NULL; |
| 353 LoggingChangeDelegate change_delegate; | 353 LoggingChangeDelegate change_delegate; |
| (...skipping 37 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 |