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

Unified Diff: components/sync/base/cancelation_signal.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/cancelation_signal.h ('k') | components/sync/base/cryptographer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/base/cancelation_signal.cc
diff --git a/components/sync/base/cancelation_signal.cc b/components/sync/base/cancelation_signal.cc
index a0c99421d4f9dd63c652581d40252f5faf2925ba..e68a244a8caa6651c2cbf25e3a6eaa4e224f6961 100644
--- a/components/sync/base/cancelation_signal.cc
+++ b/components/sync/base/cancelation_signal.cc
@@ -9,7 +9,7 @@
namespace syncer {
-CancelationSignal::CancelationSignal() : signalled_(false), handler_(NULL) {}
+CancelationSignal::CancelationSignal() : signalled_(false), handler_(nullptr) {}
CancelationSignal::~CancelationSignal() {
DCHECK(!handler_);
@@ -29,7 +29,7 @@ bool CancelationSignal::TryRegisterHandler(CancelationObserver* handler) {
void CancelationSignal::UnregisterHandler(CancelationObserver* handler) {
base::AutoLock lock(signal_lock_);
DCHECK_EQ(handler_, handler);
- handler_ = NULL;
+ handler_ = nullptr;
}
bool CancelationSignal::IsSignalled() {
« no previous file with comments | « components/sync/base/cancelation_signal.h ('k') | components/sync/base/cryptographer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698