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

Unified Diff: chrome/browser/views/download_item_view.h

Issue 3052043: Fix crasher with download bar. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Nulling deleted_ Created 10 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 | chrome/browser/views/download_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/download_item_view.h
diff --git a/chrome/browser/views/download_item_view.h b/chrome/browser/views/download_item_view.h
index 542245c9e79517d96964107981c3056dc44c0f6f..1eeb190f9b3fb9b9cf08875321bfdaae9c34419b 100644
--- a/chrome/browser/views/download_item_view.h
+++ b/chrome/browser/views/download_item_view.h
@@ -256,6 +256,11 @@ class DownloadItemView : public views::ButtonListener,
// The currently running download context menu.
scoped_ptr<DownloadShelfContextMenuWin> context_menu_;
+ // If non-NULL, set to true when this object is deleted.
+ // (Used when showing the context menu as it runs an inner message loop that
+ // might delete us).
+ bool* deleted_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadItemView);
};
« no previous file with comments | « no previous file | chrome/browser/views/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698