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

Unified Diff: chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.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
Index: chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc
diff --git a/chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc b/chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc
index bd19d5f2bc3185cb8244d3e3ab49513b301ed6a3..a0e2e31c872cbd0f2638027d1bd8ea0ab1092be1 100644
--- a/chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc
+++ b/chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc
@@ -20,10 +20,7 @@ DownloadShelfContextMenuGtk::~DownloadShelfContextMenuGtk() {}
void DownloadShelfContextMenuGtk::Popup(GtkWidget* widget,
GdkEventButton* event) {
- if (download_item()->IsComplete())
- menu_.reset(new MenuGtk(this, GetFinishedMenuModel()));
- else
- menu_.reset(new MenuGtk(this, GetInProgressMenuModel()));
+ menu_.reset(new MenuGtk(this, GetMenuModel()));
if (widget)
menu_->PopupForWidget(widget, event->button, event->time);

Powered by Google App Engine
This is Rietveld 408576698