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

Unified Diff: components/sync/tools/sync_client.cc

Issue 2427803002: [Sync] Replacing NULL with nullptr in code and null in comments for components/sync/ (Closed)
Patch Set: Fixing start of sentence capitlization. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/tools/sync_client.cc
diff --git a/components/sync/tools/sync_client.cc b/components/sync/tools/sync_client.cc
index 36b355dd67cb38544f72ec68adf12604b39e14a9..87356b9038d41294d0816a86ea6c3a0470981fbc 100644
--- a/components/sync/tools/sync_client.cc
+++ b/components/sync/tools/sync_client.cc
@@ -79,7 +79,7 @@ class MyTestURLRequestContext : public net::TestURLRequestContext {
public:
MyTestURLRequestContext() : TestURLRequestContext(true) {
context_storage_.set_host_resolver(
- net::HostResolver::CreateDefaultResolver(NULL));
+ net::HostResolver::CreateDefaultResolver(nullptr));
context_storage_.set_transport_security_state(
base::MakeUnique<net::TransportSecurityState>());
Init();
@@ -392,8 +392,8 @@ int SyncClientMain(int argc, char* argv[]) {
std::unique_ptr<SyncManager> sync_manager =
sync_manager_factory.CreateSyncManager("sync_client manager");
LoggingJsEventHandler js_event_handler;
- // Used only by InitialProcessMetadata(), so it's okay to leave this as NULL.
- const scoped_refptr<base::TaskRunner> blocking_task_runner = NULL;
+ // Used only by InitialProcessMetadata(), so it's okay to leave this as null.
+ const scoped_refptr<base::TaskRunner> blocking_task_runner = nullptr;
const char kUserAgent[] = "sync_client";
// TODO(akalin): Replace this with just the context getter once
// HttpPostProviderFactory is removed.
@@ -402,9 +402,8 @@ int SyncClientMain(int argc, char* argv[]) {
context_getter.get(), base::Bind(&StubNetworkTimeUpdateCallback),
&factory_cancelation_signal));
post_factory->Init(kUserAgent, BindToTrackerCallback());
- // Used only when committing bookmarks, so it's okay to leave this
- // as NULL.
- ExtensionsActivity* extensions_activity = NULL;
+ // Used only when committing bookmarks, so it's okay to leave this as null.
+ ExtensionsActivity* extensions_activity = nullptr;
LoggingChangeDelegate change_delegate;
const char kRestoredKeyForBootstrapping[] = "";
const char kRestoredKeystoreKeyForBootstrapping[] = "";
« no previous file with comments | « components/sync/test/fake_server/fake_server_verifier.cc ('k') | components/sync/tools/sync_listen_notifications.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698