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

Unified Diff: ash/shell.cc

Issue 2870253006: Fix WindowTreeHostManager::GetPrimaryRootWindow. (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | ash/wm/window_util.cc » ('j') | ash/wm/window_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 525229c8e6cc076d334e02aebc2ca5f31855576e..d12c07fe48a4c8c898637e1278223e7d81d327e1 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -269,7 +269,8 @@ RootWindowController* Shell::GetRootWindowControllerWithDisplayId(
// static
aura::Window* Shell::GetPrimaryRootWindow() {
CHECK(HasInstance());
- return instance_->shell_port_->GetPrimaryRootWindow()->aura_window();
+ WmWindow* wm_window = instance_->shell_port_->GetPrimaryRootWindow();
varkha 2017/05/10 22:23:59 Not for this CL - WmWindow should probably go away
+ return wm_window ? wm_window->aura_window() : nullptr;
}
// static
« no previous file with comments | « no previous file | ash/wm/window_util.cc » ('j') | ash/wm/window_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698