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

Unified Diff: ash/common/wm/system_modal_container_layout_manager.cc

Issue 2735983006: Renames WmWindowUserData and converts to using aura (Closed)
Patch Set: =null Created 3 years, 9 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: ash/common/wm/system_modal_container_layout_manager.cc
diff --git a/ash/common/wm/system_modal_container_layout_manager.cc b/ash/common/wm/system_modal_container_layout_manager.cc
index d6d8d0406f86c8f245847544660f07ff9212869e..2f21230de32bc0acd449fd0bdba732aacbf787ea 100644
--- a/ash/common/wm/system_modal_container_layout_manager.cc
+++ b/ash/common/wm/system_modal_container_layout_manager.cc
@@ -160,7 +160,7 @@ bool SystemModalContainerLayoutManager::ActivateNextModalWindow() {
void SystemModalContainerLayoutManager::CreateModalBackground() {
if (!window_dimmer_) {
- window_dimmer_ = base::MakeUnique<WindowDimmer>(container_);
+ window_dimmer_ = base::MakeUnique<WindowDimmer>(container_->aura_window());
window_dimmer_->window()->SetName(
"SystemModalContainerLayoutManager.ModalBackground");
// There isn't always a keyboard controller.
@@ -189,7 +189,7 @@ bool SystemModalContainerLayoutManager::IsModalBackground(WmWindow* window) {
static_cast<SystemModalContainerLayoutManager*>(
window->GetParent()->GetLayoutManager());
return layout_manager->window_dimmer_ &&
- layout_manager->window_dimmer_->window() == window;
+ WmWindow::Get(layout_manager->window_dimmer_->window()) == window;
}
////////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698