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

Unified Diff: trunk/src/ash/shell/window_watcher.cc

Issue 25716004: Revert 226547 "Refactor LauncherItemController and LauncherItemD..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 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: trunk/src/ash/shell/window_watcher.cc
===================================================================
--- trunk/src/ash/shell/window_watcher.cc (revision 226578)
+++ trunk/src/ash/shell/window_watcher.cc (working copy)
@@ -6,11 +6,9 @@
#include "ash/display/display_controller.h"
#include "ash/launcher/launcher.h"
-#include "ash/launcher/launcher_item_delegate_manager.h"
#include "ash/launcher/launcher_model.h"
#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
-#include "ash/shell/window_watcher_launcher_item_delegate.h"
#include "ash/shell_window_ids.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
@@ -110,8 +108,7 @@
ash::LauncherItem item;
item.type = new_window->type() == aura::client::WINDOW_TYPE_PANEL ?
ash::TYPE_APP_PANEL : ash::TYPE_PLATFORM_APP;
- ash::LauncherID id = model->next_id();
- id_to_window_[id] = new_window;
+ id_to_window_[model->next_id()] = new_window;
SkBitmap icon_bitmap;
icon_bitmap.setConfig(SkBitmap::kARGB_8888_Config, 16, 16);
@@ -124,12 +121,6 @@
item.image = gfx::ImageSkia(gfx::ImageSkiaRep(icon_bitmap, 1.0f));
model->Add(item);
-
- ash::LauncherItemDelegateManager* manager =
- ash::Shell::GetInstance()->launcher_item_delegate_manager();
- scoped_ptr<LauncherItemDelegate> delegate(
- new WindowWatcherLauncherItemDelegate(id, this));
- manager->SetLauncherItemDelegate(id, delegate.Pass());
}
void WindowWatcher::OnWillRemoveWindow(aura::Window* window) {
« no previous file with comments | « trunk/src/ash/shell/launcher_delegate_impl.cc ('k') | trunk/src/ash/shell/window_watcher_launcher_item_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698