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

Unified Diff: ui/views/bubble/bubble_frame_view.cc

Issue 2253283003: macviews: reinstate close button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_frame_view.cc
diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc
index c3714d537673ac730fd818390ec024af2c9aff6f..f03f984ef6e3d4854188cde0953b2cbff28353a0 100644
--- a/ui/views/bubble/bubble_frame_view.cc
+++ b/ui/views/bubble/bubble_frame_view.cc
@@ -211,12 +211,7 @@ void BubbleFrameView::GetWindowMask(const gfx::Size& size,
}
void BubbleFrameView::ResetWindowControls() {
-#if defined(OS_MACOSX)
- // On Mac, close buttons are never shown.
- close_->SetVisible(false);
-#else
close_->SetVisible(GetWidget()->widget_delegate()->ShouldShowCloseButton());
-#endif
}
void BubbleFrameView::UpdateWindowIcon() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698