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

Unified Diff: chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc

Issue 9702054: Revert 126764 - Added notion of currently active app / browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « ash/wm/window_util.cc ('k') | chrome/browser/ui/views/ash/launcher/launcher_updater.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc
===================================================================
--- chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc (revision 126791)
+++ chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc (working copy)
@@ -207,7 +207,6 @@
void ChromeLauncherDelegate::SetItemStatus(ash::LauncherID id,
ash::LauncherItemStatus status) {
int index = model_->ItemIndexByID(id);
- DCHECK_GE(index, 0);
ash::LauncherItem item = model_->items()[index];
item.status = status;
model_->Set(index, item);
@@ -245,6 +244,7 @@
if (id_to_item_map_[id].pinned) {
// The item is pinned, leave it in the launcher.
id_to_item_map_[id].updater = NULL;
+ printf("ChromeLauncherDelegate::LauncherItemClosed\n");
SetItemStatus(id, ash::STATUS_CLOSED);
} else {
id_to_item_map_.erase(id);
« no previous file with comments | « ash/wm/window_util.cc ('k') | chrome/browser/ui/views/ash/launcher/launcher_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698