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

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

Issue 6974005: download: Add a GetMenuModel() that grabs the correct model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | « chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/download/download_shelf_context_menu_view.cc
diff --git a/chrome/browser/ui/views/download/download_shelf_context_menu_view.cc b/chrome/browser/ui/views/download/download_shelf_context_menu_view.cc
index fb2736d5785bad1043f1e942b03b06f9934d5478..9d65dd345134d2bcc6fb3556ec60dd835e032f9d 100644
--- a/chrome/browser/ui/views/download/download_shelf_context_menu_view.cc
+++ b/chrome/browser/ui/views/download/download_shelf_context_menu_view.cc
@@ -20,10 +20,7 @@ DownloadShelfContextMenuView::DownloadShelfContextMenuView(
DownloadShelfContextMenuView::~DownloadShelfContextMenuView() {}
void DownloadShelfContextMenuView::Run(const gfx::Point& point) {
- if (download_item()->IsComplete())
- menu_.reset(new views::Menu2(GetFinishedMenuModel()));
- else
- menu_.reset(new views::Menu2(GetInProgressMenuModel()));
+ menu_.reset(new views::Menu2(GetMenuModel()));
// The menu's alignment is determined based on the UI layout.
views::Menu2::Alignment alignment;
« no previous file with comments | « chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698