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

Unified Diff: chrome/browser/ui/views/ash/key_rewriter.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
« no previous file with comments | « chrome/browser/ui/tabs/dock_info_ash.cc ('k') | chrome/browser/ui/views/extensions/extension_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/ash/key_rewriter.cc
diff --git a/chrome/browser/ui/views/ash/key_rewriter.cc b/chrome/browser/ui/views/ash/key_rewriter.cc
index 951fccaa47c1595cb647981fb2ed4714ebf37bee..e7f28c4327d0ef553bc540c3221014627d3c00cd 100644
--- a/chrome/browser/ui/views/ash/key_rewriter.cc
+++ b/chrome/browser/ui/views/ash/key_rewriter.cc
@@ -33,7 +33,7 @@ const int kBadDeviceId = -1;
KeyRewriter::KeyRewriter() : last_device_id_(kBadDeviceId) {
// The ash shell isn't instantiated for our unit tests.
if (ash::Shell::HasInstance())
- ash::Shell::GetInstance()->GetRootWindow()->AddRootWindowObserver(this);
+ ash::Shell::GetPrimaryRootWindow()->AddRootWindowObserver(this);
#if defined(OS_CHROMEOS)
if (base::chromeos::IsRunningOnChromeOS()) {
chromeos::XInputHierarchyChangedEventListener::GetInstance()
@@ -45,7 +45,7 @@ KeyRewriter::KeyRewriter() : last_device_id_(kBadDeviceId) {
KeyRewriter::~KeyRewriter() {
if (ash::Shell::HasInstance())
- ash::Shell::GetInstance()->GetRootWindow()->RemoveRootWindowObserver(this);
+ ash::Shell::GetPrimaryRootWindow()->RemoveRootWindowObserver(this);
#if defined(OS_CHROMEOS)
if (base::chromeos::IsRunningOnChromeOS()) {
chromeos::XInputHierarchyChangedEventListener::GetInstance()
« no previous file with comments | « chrome/browser/ui/tabs/dock_info_ash.cc ('k') | chrome/browser/ui/views/extensions/extension_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698