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

Unified Diff: chrome/browser/download/download_shelf_context_menu.h

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
« no previous file with comments | « no previous file | chrome/browser/download/download_shelf_context_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_shelf_context_menu.h
===================================================================
--- chrome/browser/download/download_shelf_context_menu.h (revision 138377)
+++ chrome/browser/download/download_shelf_context_menu.h (working copy)
@@ -16,6 +16,7 @@
namespace content {
class DownloadItem;
+class PageNavigator;
}
// This class is responsible for the download shelf context menu. Platform
@@ -40,7 +41,8 @@
void set_download_item(content::DownloadItem* item) { download_item_ = item; }
protected:
- explicit DownloadShelfContextMenu(BaseDownloadItemModel* download_model);
+ DownloadShelfContextMenu(BaseDownloadItemModel* download_model,
+ content::PageNavigator* navigator);
// Returns the correct menu model depending whether the download item is
// completed or not.
@@ -73,6 +75,9 @@
// Information source.
content::DownloadItem* download_item_;
+ // Used to open tabs.
+ content::PageNavigator* navigator_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenu);
};
« no previous file with comments | « no previous file | chrome/browser/download/download_shelf_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698