Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Side by Side Diff: sync/tools/sync_client.cc

Issue 16298002: Update sync/, sql/, and printing/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/test/engine/syncer_command_test.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « sync/test/engine/syncer_command_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698