| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; |
| 307 bool kUseSsl = true; | 307 bool kUseSsl = true; |
| 308 // Used only by InitialProcessMetadata(), so it's okay to leave this as NULL. | 308 // Used only by InitialProcessMetadata(), so it's okay to leave this as NULL. |
| 309 const scoped_refptr<base::TaskRunner> blocking_task_runner = NULL; | 309 const scoped_refptr<base::TaskRunner> blocking_task_runner = NULL; |
| 310 const char kUserAgent[] = "sync_client"; | 310 const char kUserAgent[] = "sync_client"; |
| 311 // TODO(akalin): Replace this with just the context getter once | 311 // TODO(akalin): Replace this with just the context getter once |
| 312 // HttpPostProviderFactory is removed. | 312 // HttpPostProviderFactory is removed. |
| 313 scoped_ptr<HttpPostProviderFactory> post_factory( | 313 scoped_ptr<HttpPostProviderFactory> post_factory(new HttpBridgeFactory( |
| 314 new HttpBridgeFactory(context_getter, | 314 context_getter.get(), kUserAgent, NetworkTimeUpdateCallback())); |
| 315 kUserAgent, | |
| 316 NetworkTimeUpdateCallback())); | |
| 317 // Used only when committing bookmarks, so it's okay to leave this | 315 // Used only when committing bookmarks, so it's okay to leave this |
| 318 // as NULL. | 316 // as NULL. |
| 319 ExtensionsActivityMonitor* extensions_activity_monitor = NULL; | 317 ExtensionsActivityMonitor* extensions_activity_monitor = NULL; |
| 320 LoggingChangeDelegate change_delegate; | 318 LoggingChangeDelegate change_delegate; |
| 321 const char kRestoredKeyForBootstrapping[] = ""; | 319 const char kRestoredKeyForBootstrapping[] = ""; |
| 322 const char kRestoredKeystoreKeyForBootstrapping[] = ""; | 320 const char kRestoredKeystoreKeyForBootstrapping[] = ""; |
| 323 NullEncryptor null_encryptor; | 321 NullEncryptor null_encryptor; |
| 324 LoggingUnrecoverableErrorHandler unrecoverable_error_handler; | 322 LoggingUnrecoverableErrorHandler unrecoverable_error_handler; |
| 325 InternalComponentsFactoryImpl::Switches factory_switches = { | 323 InternalComponentsFactoryImpl::Switches factory_switches = { |
| 326 InternalComponentsFactory::ENCRYPTION_KEYSTORE, | 324 InternalComponentsFactory::ENCRYPTION_KEYSTORE, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 io_thread.Stop(); | 356 io_thread.Stop(); |
| 359 return 0; | 357 return 0; |
| 360 } | 358 } |
| 361 | 359 |
| 362 } // namespace | 360 } // namespace |
| 363 } // namespace syncer | 361 } // namespace syncer |
| 364 | 362 |
| 365 int main(int argc, char* argv[]) { | 363 int main(int argc, char* argv[]) { |
| 366 return syncer::SyncClientMain(argc, argv); | 364 return syncer::SyncClientMain(argc, argv); |
| 367 } | 365 } |
| OLD | NEW |