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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 workers.push_back(passive_model_safe_worker.get()); | 335 workers.push_back(passive_model_safe_worker.get()); |
336 | 336 |
337 // Set up sync manager. | 337 // Set up sync manager. |
338 SyncManagerFactory sync_manager_factory; | 338 SyncManagerFactory sync_manager_factory; |
339 scoped_ptr<SyncManager> sync_manager = | 339 scoped_ptr<SyncManager> sync_manager = |
340 sync_manager_factory.CreateSyncManager("sync_client manager"); | 340 sync_manager_factory.CreateSyncManager("sync_client manager"); |
341 LoggingJsEventHandler js_event_handler; | 341 LoggingJsEventHandler js_event_handler; |
342 const char kSyncServerAndPath[] = "clients4.google.com/chrome-sync/dev"; | 342 const char kSyncServerAndPath[] = "clients4.google.com/chrome-sync/dev"; |
343 int kSyncServerPort = 443; | 343 int kSyncServerPort = 443; |
344 bool kUseSsl = true; | 344 bool kUseSsl = true; |
345 // Used only by RefreshNigori(), so it's okay to leave this as NULL. | 345 // Used only by InitialProcessMetadata(), so it's okay to leave this as NULL. |
346 const scoped_refptr<base::TaskRunner> blocking_task_runner = NULL; | 346 const scoped_refptr<base::TaskRunner> blocking_task_runner = NULL; |
347 const char kUserAgent[] = "sync_client"; | 347 const char kUserAgent[] = "sync_client"; |
348 // TODO(akalin): Replace this with just the context getter once | 348 // TODO(akalin): Replace this with just the context getter once |
349 // HttpPostProviderFactory is removed. | 349 // HttpPostProviderFactory is removed. |
350 scoped_ptr<HttpPostProviderFactory> post_factory( | 350 scoped_ptr<HttpPostProviderFactory> post_factory( |
351 new HttpBridgeFactory(context_getter, kUserAgent)); | 351 new HttpBridgeFactory(context_getter, kUserAgent)); |
352 // Used only when committing bookmarks, so it's okay to leave this | 352 // Used only when committing bookmarks, so it's okay to leave this |
353 // as NULL. | 353 // as NULL. |
354 ExtensionsActivityMonitor* extensions_activity_monitor = NULL; | 354 ExtensionsActivityMonitor* extensions_activity_monitor = NULL; |
355 LoggingChangeDelegate change_delegate; | 355 LoggingChangeDelegate change_delegate; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 io_thread.Stop(); | 393 io_thread.Stop(); |
394 return 0; | 394 return 0; |
395 } | 395 } |
396 | 396 |
397 } // namespace | 397 } // namespace |
398 } // namespace syncer | 398 } // namespace syncer |
399 | 399 |
400 int main(int argc, char* argv[]) { | 400 int main(int argc, char* argv[]) { |
401 return syncer::SyncClientMain(argc, argv); | 401 return syncer::SyncClientMain(argc, argv); |
402 } | 402 } |
OLD | NEW |