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

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

Issue 2293183002: ash: Remove ash::Shelf in favor of ash::WmShelf (Closed)
Patch Set: rebase again 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/chromevox_panel.cc
diff --git a/chrome/browser/chromeos/accessibility/chromevox_panel.cc b/chrome/browser/chromeos/accessibility/chromevox_panel.cc
index bf1e5d4b3c133cf1cc6ec8fa8369fa0939775ae6..79d00d714987b3e24ce50bfa17711e9210a9ad7b 100644
--- a/chrome/browser/chromeos/accessibility/chromevox_panel.cc
+++ b/chrome/browser/chromeos/accessibility/chromevox_panel.cc
@@ -4,8 +4,8 @@
#include "ash/aura/wm_window_aura.h"
#include "ash/common/accessibility_types.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/shell_window_ids.h"
#include "ash/root_window_controller.h"
#include "ash/shell.h"
@@ -116,9 +116,9 @@ void ChromeVoxPanel::DidFirstVisuallyNonEmptyPaint() {
}
void ChromeVoxPanel::UpdatePanelHeight() {
- ash::Shelf* shelf =
- ash::Shelf::ForWindow(ash::WmWindowAura::Get(GetRootWindow()));
- if (!shelf)
+ ash::WmShelf* shelf =
+ ash::WmShelf::ForWindow(ash::WmWindowAura::Get(GetRootWindow()));
+ if (!shelf->IsShelfInitialized())
return;
ash::ShelfLayoutManager* shelf_layout_manager = shelf->shelf_layout_manager();
« no previous file with comments | « chrome/browser/chromeos/accessibility/accessibility_manager.cc ('k') | chrome/browser/chromeos/first_run/steps/tray_step.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698