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

Unified Diff: components/sync/driver/glue/sync_backend_host_core.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_core.cc
diff --git a/components/sync/driver/glue/sync_backend_host_core.cc b/components/sync/driver/glue/sync_backend_host_core.cc
index 48f0afa347c2bb21eae10990cb76d2b98c993dc7..e853d29dcebdf47ac1a414cabc9094bacf17d72f 100644
--- a/components/sync/driver/glue/sync_backend_host_core.cc
+++ b/components/sync/driver/glue/sync_backend_host_core.cc
@@ -111,8 +111,8 @@ SyncBackendHostCore::SyncBackendHostCore(
: name_(name),
sync_data_folder_path_(sync_data_folder_path),
host_(backend),
- sync_loop_(NULL),
- registrar_(NULL),
+ sync_loop_(nullptr),
+ registrar_(nullptr),
has_sync_setup_completed_(has_sync_setup_completed),
forward_protocol_events_(false),
forward_type_info_(false),
@@ -466,7 +466,7 @@ void SyncBackendHostCore::DoInitialProcessControlTypes() {
// which is called at the end of every sync cycle.
// TODO(zea): eventually add an experiment handler and initialize it here.
- if (!sync_manager_->GetUserShare()) { // NULL in some tests.
+ if (!sync_manager_->GetUserShare()) { // Null in some tests.
DVLOG(1) << "Skipping initialization of DeviceInfo";
host_.Call(FROM_HERE,
&SyncBackendHostImpl::HandleInitializationFailureOnFrontendLoop);
@@ -527,7 +527,7 @@ void SyncBackendHostCore::DoShutdown(ShutdownReason reason) {
DoDestroySyncManager(reason);
- registrar_ = NULL;
+ registrar_ = nullptr;
if (reason == DISABLE_SYNC)
DeleteSyncDataFolder();
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_core.h ('k') | components/sync/driver/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698