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

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: Rebase and fixing conflict. 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..7bb4c7ed8e707574b4c86dc2260f1d3e3e751ff8 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.
maxbogue 2016/10/17 20:33:14 nit: Null (sentences begin with capital letters.)
skym 2016/10/17 20:36:00 Done.
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();

Powered by Google App Engine
This is Rietveld 408576698