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

Unified Diff: chrome/browser/chromeos/accessibility/accessibility_manager.cc

Issue 2293183002: ash: Remove ash::Shelf in favor of ash::WmShelf (Closed)
Patch Set: rebase Created 4 years, 4 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: chrome/browser/chromeos/accessibility/accessibility_manager.cc
diff --git a/chrome/browser/chromeos/accessibility/accessibility_manager.cc b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
index ad197bb53902b988dfc630d253b3b77181b67e7a..f069aa1f206099714613dcae21d2abb452de4ee4 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
@@ -13,8 +13,8 @@
#include "ash/aura/wm_window_aura.h"
#include "ash/autoclick/autoclick_controller.h"
#include "ash/common/session/session_state_delegate.h"
-#include "ash/common/shelf/shelf.h"
#include "ash/common/shelf/shelf_layout_manager.h"
+#include "ash/common/shelf/wm_shelf.h"
#include "ash/common/wm_shell.h"
#include "ash/high_contrast/high_contrast_controller.h"
#include "ash/root_window_controller.h"
@@ -1523,9 +1523,9 @@ void AccessibilityManager::OnChromeVoxPanelClosing() {
chromevox_panel_widget_observer_.reset(nullptr);
chromevox_panel_ = nullptr;
- ash::Shelf* shelf =
- ash::Shelf::ForWindow(ash::WmWindowAura::Get(root_window));
- if (!shelf)
+ ash::WmShelf* shelf =
+ ash::WmShelf::ForWindow(ash::WmWindowAura::Get(root_window));
+ if (!shelf->IsShelfCreated())
msw 2016/08/30 22:02:07 nit: maybe skip this and just let the shelf layout
James Cook 2016/08/30 23:00:57 I'd prefer to keep this as-is. Otherwise there are
return;
ash::ShelfLayoutManager* shelf_layout_manager = shelf->shelf_layout_manager();

Powered by Google App Engine
This is Rietveld 408576698