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

Unified Diff: components/sync/base/sync_prefs.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
« no previous file with comments | « components/sync/base/sync_prefs.h ('k') | components/sync/base/weak_handle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/base/sync_prefs.cc
diff --git a/components/sync/base/sync_prefs.cc b/components/sync/base/sync_prefs.cc
index 6f5d5c0c719c2985e90eedc0b9eb10c6fc4e6149..fdcbe6cd2a88721c5d6bd86d755a344a46e31799 100644
--- a/components/sync/base/sync_prefs.cc
+++ b/components/sync/base/sync_prefs.cc
@@ -26,7 +26,7 @@ SyncPrefs::SyncPrefs(PrefService* pref_service) : pref_service_(pref_service) {
base::Bind(&SyncPrefs::OnSyncManagedPrefChanged, base::Unretained(this)));
}
-SyncPrefs::SyncPrefs() : pref_service_(NULL) {}
+SyncPrefs::SyncPrefs() : pref_service_(nullptr) {}
SyncPrefs::~SyncPrefs() {
DCHECK(CalledOnValidThread());
@@ -324,7 +324,7 @@ const char* SyncPrefs::GetPrefNameForDataType(ModelType data_type) {
break;
}
NOTREACHED() << "Type is " << data_type;
- return NULL;
+ return nullptr;
}
#if defined(OS_CHROMEOS)
@@ -406,7 +406,7 @@ bool SyncPrefs::GetDataTypePreferred(ModelType type) const {
return true;
if (type == PROXY_TABS &&
- pref_service_->GetUserPrefValue(pref_name) == NULL &&
+ pref_service_->GetUserPrefValue(pref_name) == nullptr &&
pref_service_->IsUserModifiablePreference(pref_name)) {
// If there is no tab sync preference yet (i.e. newly enabled type),
// default to the session sync preference value.
« no previous file with comments | « components/sync/base/sync_prefs.h ('k') | components/sync/base/weak_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698