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

Unified Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc

Issue 9320076: Aura: Switch window mode when screen resolution changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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
« ash/shell.cc ('K') | « ash/shell_unittest.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/views/frame/opaque_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
index c3fb4ed8432115fb435d5bb22b023b7f652b78d8..83e5fed50d0e2f4aeb3317b3ddb17eacd1ae85d8 100644
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
@@ -978,8 +978,10 @@ void OpaqueBrowserFrameView::LayoutWindowControls() {
}
return;
}
- close_button_->SetVisible(true);
}
+ // Aura can transition in and out of single-window mode, so be sure the
+ // close button is visible after the change.
+ close_button_->SetVisible(true);
// When the window is restored, we show a maximized button; otherwise, we show
// a restore button.
« ash/shell.cc ('K') | « ash/shell_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698