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

Unified Diff: chrome/browser/ui/views/download/download_item_view.cc

Issue 10421021: Make DownloadProtectionService not use BrowserList::GetLastActive() to load a link. Instead pass th… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
Index: chrome/browser/ui/views/download/download_item_view.cc
===================================================================
--- chrome/browser/ui/views/download/download_item_view.cc (revision 138377)
+++ chrome/browser/ui/views/download/download_item_view.cc (working copy)
@@ -570,8 +570,11 @@
weak_ptr_factory_.GetWeakPtr()));
views::View::ConvertPointToScreen(this, &point);
- if (!context_menu_.get())
- context_menu_.reset(new DownloadShelfContextMenuView(model_.get()));
+ if (!context_menu_.get()) {
+ context_menu_.reset(
+ new DownloadShelfContextMenuView(model_.get(),
+ parent_->GetNavigator()));
+ }
context_menu_->Run(GetWidget()->GetTopLevelWidget(),
gfx::Rect(point, size));
// We could be deleted now.

Powered by Google App Engine
This is Rietveld 408576698