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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.cc

Issue 2671923002: mash: Cleanup ash shelf application menu code. (Closed)
Patch Set: Add comments Created 3 years, 10 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/ash/launcher/chrome_launcher_app_menu_item_tab.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.cc
index e563f2457f919c1dff07753784286053c6ce4141..956b6216a793b949a58091253d637f70ea185fba 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.cc
@@ -15,15 +15,9 @@
ChromeLauncherAppMenuItemTab::ChromeLauncherAppMenuItemTab(
const base::string16 title,
const gfx::Image* icon,
- content::WebContents* content,
- bool has_leading_separator)
- : ChromeLauncherAppMenuItem(title, icon, has_leading_separator),
- content::WebContentsObserver(content) {
-}
-
-bool ChromeLauncherAppMenuItemTab::IsEnabled() const {
- return true;
-}
+ content::WebContents* content)
+ : ash::ShelfApplicationMenuItem(title, icon),
+ content::WebContentsObserver(content) {}
void ChromeLauncherAppMenuItemTab::Execute(int event_flags) {
if (!web_contents())

Powered by Google App Engine
This is Rietveld 408576698