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

Unified Diff: components/sync/driver/ui_data_type_controller.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/ui_data_type_controller.cc
diff --git a/components/sync/driver/ui_data_type_controller.cc b/components/sync/driver/ui_data_type_controller.cc
index e5065ecbba00ad974be68532328e045195784a61..1290a052fbb103b64a09320793383d130149433e 100644
--- a/components/sync/driver/ui_data_type_controller.cc
+++ b/components/sync/driver/ui_data_type_controller.cc
@@ -57,7 +57,7 @@ void UIDataTypeController::LoadModels(
return;
}
// Since we can't be called multiple times before Stop() is called,
- // |shared_change_processor_| must be NULL here.
+ // |shared_change_processor_| must be null here.
DCHECK(!shared_change_processor_.get());
shared_change_processor_ = new SharedChangeProcessor(type());
@@ -236,7 +236,7 @@ void UIDataTypeController::AbortModelLoad() {
state_ = NOT_RUNNING;
if (shared_change_processor_.get()) {
- shared_change_processor_ = NULL;
+ shared_change_processor_ = nullptr;
}
// We don't want to continue loading models (e.g OnModelLoaded should never be
@@ -267,7 +267,7 @@ void UIDataTypeController::StartDone(
if (shared_change_processor_.get()) {
shared_change_processor_->Disconnect();
- shared_change_processor_ = NULL;
+ shared_change_processor_ = nullptr;
}
}
@@ -286,7 +286,7 @@ void UIDataTypeController::Stop() {
if (shared_change_processor_.get()) {
shared_change_processor_->Disconnect();
- shared_change_processor_ = NULL;
+ shared_change_processor_ = nullptr;
}
// If Stop() is called while Start() is waiting for the datatype model to
« no previous file with comments | « components/sync/driver/sync_policy_handler_unittest.cc ('k') | components/sync/driver/ui_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698