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

Unified Diff: components/sync/driver/glue/sync_backend_registrar.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_registrar.cc
diff --git a/components/sync/driver/glue/sync_backend_registrar.cc b/components/sync/driver/glue/sync_backend_registrar.cc
index 464261f4c15edf1d68412f36dde58ccc00cf6f38..fd0ebc390242a0a8ef70624673124239cd207953 100644
--- a/components/sync/driver/glue/sync_backend_registrar.cc
+++ b/components/sync/driver/glue/sync_backend_registrar.cc
@@ -207,7 +207,7 @@ void SyncBackendRegistrar::DeactivateDataType(ModelType type) {
}
bool SyncBackendRegistrar::IsTypeActivatedForTest(ModelType type) const {
- return GetProcessor(type) != NULL;
+ return GetProcessor(type) != nullptr;
}
void SyncBackendRegistrar::OnChangesApplied(
@@ -253,7 +253,7 @@ ChangeProcessor* SyncBackendRegistrar::GetProcessor(ModelType type) const {
base::AutoLock lock(lock_);
ChangeProcessor* processor = GetProcessorUnsafe(type);
if (!processor)
- return NULL;
+ return nullptr;
// We can only check if |processor| exists, as otherwise the type is
// mapped to GROUP_PASSIVE.
@@ -274,7 +274,7 @@ ChangeProcessor* SyncBackendRegistrar::GetProcessorUnsafe(
// association takes place then the change processor is added to the
// |processors_| list.
if (it == processors_.end())
- return NULL;
+ return nullptr;
return it->second;
}
« no previous file with comments | « components/sync/driver/glue/sync_backend_registrar.h ('k') | components/sync/driver/glue/sync_backend_registrar_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698