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

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

Issue 2716403005: mash: Remove shelf app menu item objects. (Closed)
Patch Set: Address 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_v2app.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.cc
deleted file mode 100644
index bfa301800c382866d87f7b886af2e44837f3813f..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.cc
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.h"
-
-#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
-
-ChromeLauncherAppMenuItemV2App::ChromeLauncherAppMenuItemV2App(
- const base::string16 title,
- const gfx::Image* icon,
- const std::string& app_id,
- ChromeLauncherController* launcher_controller,
- int app_index)
- : ash::ShelfApplicationMenuItem(title, icon),
- launcher_controller_(launcher_controller),
- app_id_(app_id),
- app_index_(app_index) {}
-
-ChromeLauncherAppMenuItemV2App::~ChromeLauncherAppMenuItemV2App() {}
-
-void ChromeLauncherAppMenuItemV2App::Execute(int event_flags) {
- // Note: At this time there is only a single app running at any point. as
- // such we will never come here with usable |event_flags|. If that ever
- // changes we should add some special close code here.
- // Note: If the application item did go away since the menu was created,
- // The controller will take care of it.
- launcher_controller_->ActivateShellApp(app_id_, app_index_);
-}

Powered by Google App Engine
This is Rietveld 408576698