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..ac240ea981243e5a32b6a65a4f291e84e50fdb06 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->IsShelfInitialized()) |
xiyuan
2016/08/30 23:14:31
I assume that shelf would never bu nullptr.
James Cook
2016/08/30 23:18:33
Yes, WmShelf* always exists as long as there is a
|
return; |
ash::ShelfLayoutManager* shelf_layout_manager = shelf->shelf_layout_manager(); |