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

Unified Diff: ash/wm/window_util.cc

Issue 9837046: Revert r128507 "Revert r128436 "relanding: disabled workspace_window_resizer test. fixed access-aft… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/workspace/workspace_window_resizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index fbba9ad7cebfa6242d67cc35dd0a142e49720b9f..4a94e1b957f0460ef60375898d2bcf52a2da5639 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -39,9 +39,9 @@ bool IsActiveWindow(aura::Window* window) {
DCHECK(window);
if (!window->GetRootWindow())
return false;
-
- return aura::client::GetActivationClient(window->GetRootWindow())->
- GetActiveWindow() == window;
+ aura::client::ActivationClient* client =
+ aura::client::GetActivationClient(window->GetRootWindow());
+ return client && client->GetActiveWindow() == window;
}
aura::Window* GetActiveWindow() {
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/workspace/workspace_window_resizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698