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

Unified Diff: components/sync/driver/glue/sync_backend_host_impl.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/driver/glue/sync_backend_host_impl.cc
diff --git a/components/sync/driver/glue/sync_backend_host_impl.cc b/components/sync/driver/glue/sync_backend_host_impl.cc
index 3c8f4f69ac2e5ad0a93174a821d5870d78a91fc4..1132f50c6571a61ac4abea5fef3c9d70db4aa936 100644
--- a/components/sync/driver/glue/sync_backend_host_impl.cc
+++ b/components/sync/driver/glue/sync_backend_host_impl.cc
@@ -54,7 +54,7 @@ SyncBackendHostImpl::SyncBackendHostImpl(
name_(name),
initialized_(false),
sync_prefs_(sync_prefs),
- frontend_(NULL),
+ frontend_(nullptr),
cached_passphrase_type_(PassphraseType::IMPLICIT_PASSPHRASE),
invalidator_(invalidator),
invalidation_handler_registered_(false),
@@ -225,7 +225,7 @@ void SyncBackendHostImpl::StopSyncingForShutdown() {
DCHECK(frontend_task_runner_->BelongsToCurrentThread());
// Immediately stop sending messages to the frontend.
- frontend_ = NULL;
+ frontend_ = nullptr;
DCHECK(registrar_->sync_thread()->IsRunning());
@@ -248,7 +248,7 @@ std::unique_ptr<base::Thread> SyncBackendHostImpl::Shutdown(
UnregisterInvalidationIds();
}
invalidator_->UnregisterInvalidationHandler(this);
- invalidator_ = NULL;
+ invalidator_ = nullptr;
}
invalidation_handler_registered_ = false;
@@ -258,7 +258,7 @@ std::unique_ptr<base::Thread> SyncBackendHostImpl::Shutdown(
registrar_->sync_thread()->task_runner()->PostTask(
FROM_HERE,
base::Bind(&SyncBackendHostCore::DoShutdown, core_, reason));
- core_ = NULL;
+ core_ = nullptr;
// Worker cleanup.
SyncBackendRegistrar* detached_registrar = registrar_.release();
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_core.cc ('k') | components/sync/driver/glue/sync_backend_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698