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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « sync/test/engine/syncer_command_test.h ('k') | ui/compositor/layer.cc » ('j') | 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/base64.h" 10 #include "base/base64.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 LoggingJsEventHandler js_event_handler; 339 LoggingJsEventHandler js_event_handler;
340 const char kSyncServerAndPath[] = "clients4.google.com/chrome-sync/dev"; 340 const char kSyncServerAndPath[] = "clients4.google.com/chrome-sync/dev";
341 int kSyncServerPort = 443; 341 int kSyncServerPort = 443;
342 bool kUseSsl = true; 342 bool kUseSsl = true;
343 // Used only by RefreshNigori(), so it's okay to leave this as NULL. 343 // Used only by RefreshNigori(), so it's okay to leave this as NULL.
344 const scoped_refptr<base::TaskRunner> blocking_task_runner = NULL; 344 const scoped_refptr<base::TaskRunner> blocking_task_runner = NULL;
345 const char kUserAgent[] = "sync_client"; 345 const char kUserAgent[] = "sync_client";
346 // TODO(akalin): Replace this with just the context getter once 346 // TODO(akalin): Replace this with just the context getter once
347 // HttpPostProviderFactory is removed. 347 // HttpPostProviderFactory is removed.
348 scoped_ptr<HttpPostProviderFactory> post_factory( 348 scoped_ptr<HttpPostProviderFactory> post_factory(
349 new HttpBridgeFactory(context_getter, kUserAgent)); 349 new HttpBridgeFactory(context_getter.get(), kUserAgent));
350 // Used only when committing bookmarks, so it's okay to leave this 350 // Used only when committing bookmarks, so it's okay to leave this
351 // as NULL. 351 // as NULL.
352 ExtensionsActivityMonitor* extensions_activity_monitor = NULL; 352 ExtensionsActivityMonitor* extensions_activity_monitor = NULL;
353 LoggingChangeDelegate change_delegate; 353 LoggingChangeDelegate change_delegate;
354 const char kRestoredKeyForBootstrapping[] = ""; 354 const char kRestoredKeyForBootstrapping[] = "";
355 const char kRestoredKeystoreKeyForBootstrapping[] = ""; 355 const char kRestoredKeystoreKeyForBootstrapping[] = "";
356 NullEncryptor null_encryptor; 356 NullEncryptor null_encryptor;
357 LoggingUnrecoverableErrorHandler unrecoverable_error_handler; 357 LoggingUnrecoverableErrorHandler unrecoverable_error_handler;
358 InternalComponentsFactoryImpl::Switches factory_switches = { 358 InternalComponentsFactoryImpl::Switches factory_switches = {
359 InternalComponentsFactory::ENCRYPTION_KEYSTORE, 359 InternalComponentsFactory::ENCRYPTION_KEYSTORE,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 io_thread.Stop(); 391 io_thread.Stop();
392 return 0; 392 return 0;
393 } 393 }
394 394
395 } // namespace 395 } // namespace
396 } // namespace syncer 396 } // namespace syncer
397 397
398 int main(int argc, char* argv[]) { 398 int main(int argc, char* argv[]) {
399 return syncer::SyncClientMain(argc, argv); 399 return syncer::SyncClientMain(argc, argv);
400 } 400 }
OLDNEW
« no previous file with comments | « sync/test/engine/syncer_command_test.h ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698