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

Unified Diff: ash/wm/ash_focus_rules.cc

Issue 11421194: Hook up the FocusController behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/wm/app_list_controller.cc ('k') | ash/wm/panel_layout_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/ash_focus_rules.cc
===================================================================
--- ash/wm/ash_focus_rules.cc (revision 170746)
+++ ash/wm/ash_focus_rules.cc (working copy)
@@ -22,7 +22,7 @@
// AshFocusRules, views::corewm::FocusRules:
bool AshFocusRules::CanActivateWindow(aura::Window* window) {
- return !!window->parent();
+ return window && !!window->parent();
}
bool AshFocusRules::CanFocusWindow(aura::Window* window) {
« no previous file with comments | « ash/wm/app_list_controller.cc ('k') | ash/wm/panel_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698