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

Unified Diff: ash/common/keyboard/keyboard_ui.cc

Issue 2775973002: Promotes more accessors from WmShell to Shell (Closed)
Patch Set: feedback Created 3 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/common/accelerators/accelerator_controller.cc ('k') | ash/common/mojo_interface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/keyboard/keyboard_ui.cc
diff --git a/ash/common/keyboard/keyboard_ui.cc b/ash/common/keyboard/keyboard_ui.cc
index b5f8a5596f177c5d674ed46cedce26fd11213555..f7be5dca8e455bfc68f00cfed788b62f049a1a2d 100644
--- a/ash/common/keyboard/keyboard_ui.cc
+++ b/ash/common/keyboard/keyboard_ui.cc
@@ -9,7 +9,6 @@
#include "ash/common/system/accessibility_observer.h"
#include "ash/common/system/tray/system_tray_notifier.h"
#include "ash/common/system/tray_accessibility.h"
-#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "base/memory/ptr_util.h"
#include "ui/keyboard/keyboard_controller.h"
@@ -19,12 +18,12 @@ namespace ash {
class KeyboardUIImpl : public KeyboardUI, public AccessibilityObserver {
public:
KeyboardUIImpl() : enabled_(false) {
- WmShell::Get()->system_tray_notifier()->AddAccessibilityObserver(this);
+ Shell::Get()->system_tray_notifier()->AddAccessibilityObserver(this);
}
~KeyboardUIImpl() override {
- if (WmShell::HasInstance() && WmShell::Get()->system_tray_notifier())
- WmShell::Get()->system_tray_notifier()->RemoveAccessibilityObserver(this);
+ if (Shell::HasInstance() && Shell::Get()->system_tray_notifier())
+ Shell::Get()->system_tray_notifier()->RemoveAccessibilityObserver(this);
}
// KeyboardUI:
« no previous file with comments | « ash/common/accelerators/accelerator_controller.cc ('k') | ash/common/mojo_interface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698