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

Unified Diff: athena/screen/modal_window_controller.cc

Issue 653563004: NULL -> nullptr under athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 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 | « athena/resource_manager/resource_manager_impl.cc ('k') | athena/screen/modal_window_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/screen/modal_window_controller.cc
diff --git a/athena/screen/modal_window_controller.cc b/athena/screen/modal_window_controller.cc
index 71a19ff56500c26bed9cfcd778ddc5dc5d6df2ee..90357e9ce47de1241e24e23bf6ca6f3159ab4735 100644
--- a/athena/screen/modal_window_controller.cc
+++ b/athena/screen/modal_window_controller.cc
@@ -18,7 +18,7 @@ namespace {
DEFINE_OWNED_WINDOW_PROPERTY_KEY(ModalWindowController,
kModalWindowControllerKey,
- NULL);
+ nullptr);
} // namespace
@@ -31,8 +31,8 @@ ModalWindowController* ModalWindowController::Get(aura::Window* container) {
}
ModalWindowController::ModalWindowController(int priority)
- : modal_container_(NULL),
- dimmer_window_(new aura::Window(NULL)),
+ : modal_container_(nullptr),
+ dimmer_window_(new aura::Window(nullptr)),
dimmed_(false) {
ScreenManager::ContainerParams params("ModalContainer", priority);
params.can_activate_children = true;
@@ -61,14 +61,14 @@ void ModalWindowController::OnWindowAdded(aura::Window* child) {
DCHECK_NE(child, dimmer_window_);
if (IsChildWindow(child)) {
child->AddObserver(this);
- UpdateDimming(NULL);
+ UpdateDimming(nullptr);
}
}
void ModalWindowController::OnWindowVisibilityChanged(aura::Window* window,
bool visible) {
if (IsChildWindow(window))
- UpdateDimming(NULL);
+ UpdateDimming(nullptr);
}
void ModalWindowController::OnWindowBoundsChanged(aura::Window* window,
@@ -113,8 +113,8 @@ void ModalWindowController::UpdateDimming(aura::Window* ignore) {
modal_container_->RemoveObserver(this);
modal_container_->parent()->RemoveChild(modal_container_);
base::MessageLoopForUI::current()->DeleteSoon(FROM_HERE, modal_container_);
- modal_container_ = NULL;
- dimmer_window_ = NULL;
+ modal_container_ = nullptr;
+ dimmer_window_ = nullptr;
}
}
« no previous file with comments | « athena/resource_manager/resource_manager_impl.cc ('k') | athena/screen/modal_window_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698