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

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

Issue 2545923004: Remove LauncherItemController::type; use ShelfItems::type. (Closed)
Patch Set: Rebase; remove new LauncherItemController::TYPE_APP check. Created 4 years 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/extension_app_window_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc
index 138cec71e67b9313cdfbe6c35c00f69db23076ab..a1a8100cdee825cd0ec606343bc1c3a368cea995 100644
--- a/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc
@@ -165,10 +165,9 @@ void ExtensionAppWindowLauncherController::RegisterApp(AppWindow* app_window) {
shelf_id = controller->shelf_id();
controller->AddAppWindow(app_window);
} else {
- LauncherItemController::Type type = LauncherItemController::TYPE_APP;
std::string launch_id = GetLaunchId(app_window);
ExtensionAppWindowLauncherItemController* controller =
- new ExtensionAppWindowLauncherItemController(type, app_id, launch_id,
+ new ExtensionAppWindowLauncherItemController(app_id, launch_id,
owner());
controller->AddAppWindow(app_window);
// If there is already a shelf id mapped to this app_shelf_id (e.g. pinned),

Powered by Google App Engine
This is Rietveld 408576698