Index: chrome/browser/ui/views/download/download_item_view.cc |
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc |
index 457e4d49fbb2460b9727e8242cc5b46e2da3f8c3..0acac910079fb564dec5d8a2e6c5cc858bdaa230 100644 |
--- a/chrome/browser/ui/views/download/download_item_view.cc |
+++ b/chrome/browser/ui/views/download/download_item_view.cc |
@@ -1029,10 +1029,9 @@ void DownloadItemView::ShowContextMenuImpl(const gfx::Point& p, |
weak_ptr_factory_.GetWeakPtr())); |
views::View::ConvertPointToScreen(this, &point); |
- if (!context_menu_.get()) { |
- context_menu_.reset( |
- new DownloadShelfContextMenuView(download(), shelf_->GetNavigator())); |
- } |
+ if (!context_menu_.get()) |
+ context_menu_.reset(new DownloadShelfContextMenuView(download())); |
+ |
context_menu_->Run(GetWidget()->GetTopLevelWidget(), |
gfx::Rect(point, size), source_type); |
// We could be deleted now. |