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

Unified Diff: chrome/browser/ui/ash/launcher/launcher_context_menu.cc

Issue 2907853002: [mus+ash] Removes WmWindow from ash/shelf and ash/shell (Closed)
Patch Set: [mus+ash] Removes WmWindow from ash/shelf and ash/shell (removed some more wm_window.h) Created 3 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/ash/launcher/chrome_launcher_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/launcher/launcher_context_menu.cc
diff --git a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
index 67e397a5f4af86cbaee16cd3931e2b680860a411..8230d1e9152d34673f954fbea662780fae5bb189 100644
--- a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
+++ b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
@@ -12,7 +12,6 @@
#include "ash/shell_port.h"
#include "ash/strings/grit/ash_strings.h"
#include "ash/wallpaper/wallpaper_delegate.h"
-#include "ash/wm_window.h"
#include "build/build_config.h"
#include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h"
#include "chrome/browser/fullscreen.h"
@@ -172,8 +171,10 @@ void LauncherContextMenu::AddShelfOptionsMenu() {
// on the type of fullscreen. Do not show the auto-hide menu item while in
// fullscreen per display because it is confusing when the preference appears
// not to apply.
- int64_t display_id = shelf_->GetWindow()->GetDisplayNearestWindow().id();
- if (!IsFullScreenMode(display_id) &&
+ display::Display display =
+ display::Screen::GetScreen()->GetDisplayNearestWindow(
+ shelf_->GetWindow()->GetRootWindow());
+ if (!IsFullScreenMode(display.id()) &&
CanUserModifyShelfAutoHideBehavior(controller_->profile())) {
AddCheckItemWithStringId(MENU_AUTO_HIDE,
IDS_ASH_SHELF_CONTEXT_MENU_AUTO_HIDE);
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698