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

Unified Diff: ash/accelerators/accelerator_filter.cc

Issue 10442017: Rename GetRootWindow() -> GetPrimaryRootWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git-try -b linux_chromeos,win_aura Created 8 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
Index: ash/accelerators/accelerator_filter.cc
diff --git a/ash/accelerators/accelerator_filter.cc b/ash/accelerators/accelerator_filter.cc
index bcecdfe2b1e80d6feb5b10d7ad326cc49d2de418..21f8a414675cb68d3d8cbe629eeff539e15c3cae 100644
--- a/ash/accelerators/accelerator_filter.cc
+++ b/ash/accelerators/accelerator_filter.cc
@@ -21,7 +21,7 @@ const int kModifierFlagMask = (ui::EF_SHIFT_DOWN |
bool ShouldProcessAcceleratorsNow(aura::Window* target) {
if (!target)
return true;
- if (target == ash::Shell::GetInstance()->GetRootWindow())
+ if (target == ash::Shell::GetPrimaryRootWindow())
return true;
// Unless |target| is the root window, return false to let the custom focus
// manager (see ash/shell.cc) handle Ash accelerators.
« no previous file with comments | « ash/accelerators/accelerator_controller_unittest.cc ('k') | ash/accelerators/accelerator_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698