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

Unified Diff: ash/frame/caption_buttons/frame_caption_button_container_view.cc

Issue 2113053003: Moves Shell::maximize_mode_controller() to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: order Created 4 years, 6 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: ash/frame/caption_buttons/frame_caption_button_container_view.cc
diff --git a/ash/frame/caption_buttons/frame_caption_button_container_view.cc b/ash/frame/caption_buttons/frame_caption_button_container_view.cc
index 4a93d0d3b29291aaf608a2b68b1e0ad2e79a8711..6dc00287bcba2f2f1fc4c6b31e58922e58bb8df1 100644
--- a/ash/frame/caption_buttons/frame_caption_button_container_view.cc
+++ b/ash/frame/caption_buttons/frame_caption_button_container_view.cc
@@ -308,7 +308,7 @@ void FrameCaptionButtonContainerView::SetButtonIcon(FrameCaptionButton* button,
}
bool FrameCaptionButtonContainerView::ShouldSizeButtonBeVisible() const {
- return !Shell::GetInstance()
+ return !WmShell::Get()
->maximize_mode_controller()
->IsMaximizeModeWindowManagerEnabled() &&
frame_->widget_delegate()->CanMaximize();

Powered by Google App Engine
This is Rietveld 408576698