| Index: chrome/browser/views/download_item_view.cc
|
| ===================================================================
|
| --- chrome/browser/views/download_item_view.cc (revision 26514)
|
| +++ chrome/browser/views/download_item_view.cc (working copy)
|
| @@ -820,9 +820,13 @@
|
| DownloadShelfContextMenuWin menu(model_.get(),
|
| GetWidget()->GetNativeView(),
|
| point);
|
| - drop_down_pressed_ = false;
|
| - // Showing the menu blocks. Here we revert the state.
|
| - SetState(NORMAL, NORMAL);
|
| + // If the menu action was to remove the download, this view will also be
|
| + // invalid so we must not access 'this' in this case.
|
| + if (menu.download()) {
|
| + drop_down_pressed_ = false;
|
| + // Showing the menu blocks. Here we revert the state.
|
| + SetState(NORMAL, NORMAL);
|
| + }
|
| }
|
| return true;
|
| }
|
|
|