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

Unified Diff: chrome/browser/views/tabs/tab_strip.cc

Issue 1687016: Fix HighlightCloseButton crash.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 8 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/views/tabs/tab_strip.cc
===================================================================
--- chrome/browser/views/tabs/tab_strip.cc (revision 45664)
+++ chrome/browser/views/tabs/tab_strip.cc (working copy)
@@ -209,11 +209,14 @@
}
#if defined(OS_WIN)
+ views::Widget* widget = tabstrip_->GetWidget();
+ // This can be null during shutdown. See http://crbug.com/42737.
+ if (!widget)
+ return;
// Force the close button (that slides under the mouse) to highlight by
// saying the mouse just moved, but sending the same coordinates.
DWORD pos = GetMessagePos();
POINT cursor_point = {GET_X_LPARAM(pos), GET_Y_LPARAM(pos)};
- views::Widget* widget = tabstrip_->GetWidget();
MapWindowPoints(NULL, widget->GetNativeView(), &cursor_point, 1);
static_cast<views::WidgetWin*>(widget)->ResetLastMouseMoveFlag();
« 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