Index: chrome/browser/download/download_shelf_context_menu.h |
diff --git a/chrome/browser/download/download_shelf_context_menu.h b/chrome/browser/download/download_shelf_context_menu.h |
index 8f9b4c78d46afb340cfd04f25b956f75cf3a33d4..3e7c47dc273c012dad616cee5519cf7c847f567f 100644 |
--- a/chrome/browser/download/download_shelf_context_menu.h |
+++ b/chrome/browser/download/download_shelf_context_menu.h |
@@ -36,8 +36,9 @@ class DownloadShelfContextMenu : public ui::SimpleMenuModel::Delegate { |
protected: |
explicit DownloadShelfContextMenu(BaseDownloadItemModel* download_model); |
- ui::SimpleMenuModel* GetInProgressMenuModel(); |
- ui::SimpleMenuModel* GetFinishedMenuModel(); |
+ // Returns the correct menu model depending whether the download item is |
+ // completed or not. |
+ ui::SimpleMenuModel* GetMenuModel(); |
// ui::SimpleMenuModel::Delegate: |
virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
@@ -50,6 +51,9 @@ class DownloadShelfContextMenu : public ui::SimpleMenuModel::Delegate { |
virtual string16 GetLabelForCommandId(int command_id) const OVERRIDE; |
private: |
+ ui::SimpleMenuModel* GetInProgressMenuModel(); |
+ ui::SimpleMenuModel* GetFinishedMenuModel(); |
+ |
// We show slightly different menus if the download is in progress vs. if the |
// download has finished. |
scoped_ptr<ui::SimpleMenuModel> in_progress_download_menu_model_; |