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

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

Issue 8869005: Revert EnableClose() removal and related crash fixes. I don't understand the crashes here, and th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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/ui/views/frame/browser_non_client_frame_view_aura.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc (revision 113407)
+++ chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc (working copy)
@@ -438,6 +438,10 @@
// Nothing.
}
+void BrowserNonClientFrameViewAura::EnableClose(bool enable) {
+ close_button_->SetEnabled(enable);
+}
+
void BrowserNonClientFrameViewAura::ResetWindowControls() {
maximize_button_->SetState(views::CustomButton::BS_NORMAL);
// The close button isn't affected by this constraint.

Powered by Google App Engine
This is Rietveld 408576698