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

Unified Diff: chrome/browser/ui/views/tabs/base_tab.cc

Issue 7232028: Fixes crash when closing tab then quickly right clicking. The problem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« 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: chrome/browser/ui/views/tabs/base_tab.cc
diff --git a/chrome/browser/ui/views/tabs/base_tab.cc b/chrome/browser/ui/views/tabs/base_tab.cc
index af5e41e652b6866de1ffac36412937a200a4a252..44c136484c669d4e533e0e9836423b0f50ab0986 100644
--- a/chrome/browser/ui/views/tabs/base_tab.cc
+++ b/chrome/browser/ui/views/tabs/base_tab.cc
@@ -513,7 +513,7 @@ void BaseTab::ButtonPressed(views::Button* sender, const views::Event& event) {
void BaseTab::ShowContextMenuForView(views::View* source,
const gfx::Point& p,
bool is_mouse_gesture) {
- if (controller())
+ if (controller() && !closing())
controller()->ShowContextMenuForTab(this, p);
}
« 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