| 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 workers.push_back(passive_model_safe_worker.get()); | 329 workers.push_back(passive_model_safe_worker.get()); |
| 330 | 330 |
| 331 // Set up sync manager. | 331 // Set up sync manager. |
| 332 SyncManagerFactory sync_manager_factory; | 332 SyncManagerFactory sync_manager_factory; |
| 333 scoped_ptr<SyncManager> sync_manager = | 333 scoped_ptr<SyncManager> sync_manager = |
| 334 sync_manager_factory.CreateSyncManager("sync_client manager"); | 334 sync_manager_factory.CreateSyncManager("sync_client manager"); |
| 335 LoggingJsEventHandler js_event_handler; | 335 LoggingJsEventHandler js_event_handler; |
| 336 const char kSyncServerAndPath[] = "clients4.google.com/chrome-sync/dev"; | 336 const char kSyncServerAndPath[] = "clients4.google.com/chrome-sync/dev"; |
| 337 int kSyncServerPort = 443; | 337 int kSyncServerPort = 443; |
| 338 bool kUseSsl = true; | 338 bool kUseSsl = true; |
| 339 // Used only by RefreshNigori(), so it's okay to leave this as NULL. | 339 // Used only by InitialProcessMetadata(), so it's okay to leave this as NULL. |
| 340 const scoped_refptr<base::TaskRunner> blocking_task_runner = NULL; | 340 const scoped_refptr<base::TaskRunner> blocking_task_runner = NULL; |
| 341 const char kUserAgent[] = "sync_client"; | 341 const char kUserAgent[] = "sync_client"; |
| 342 // TODO(akalin): Replace this with just the context getter once | 342 // TODO(akalin): Replace this with just the context getter once |
| 343 // HttpPostProviderFactory is removed. | 343 // HttpPostProviderFactory is removed. |
| 344 scoped_ptr<HttpPostProviderFactory> post_factory( | 344 scoped_ptr<HttpPostProviderFactory> post_factory( |
| 345 new HttpBridgeFactory(context_getter, kUserAgent)); | 345 new HttpBridgeFactory(context_getter, kUserAgent)); |
| 346 // Used only when committing bookmarks, so it's okay to leave this | 346 // Used only when committing bookmarks, so it's okay to leave this |
| 347 // as NULL. | 347 // as NULL. |
| 348 ExtensionsActivityMonitor* extensions_activity_monitor = NULL; | 348 ExtensionsActivityMonitor* extensions_activity_monitor = NULL; |
| 349 LoggingChangeDelegate change_delegate; | 349 LoggingChangeDelegate change_delegate; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 io_thread.Stop(); | 383 io_thread.Stop(); |
| 384 return 0; | 384 return 0; |
| 385 } | 385 } |
| 386 | 386 |
| 387 } // namespace | 387 } // namespace |
| 388 } // namespace syncer | 388 } // namespace syncer |
| 389 | 389 |
| 390 int main(int argc, char* argv[]) { | 390 int main(int argc, char* argv[]) { |
| 391 return syncer::SyncClientMain(argc, argv); | 391 return syncer::SyncClientMain(argc, argv); |
| 392 } | 392 } |
| OLD | NEW |