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