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

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

Issue 9689047: Added notion of currently active app / browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mid air collision 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
diff --git a/chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc b/chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc
index 6df9884e3f8f00235421ae2746005cedae026f95..8e74a37c06e98177c3a5ff767f0beae0c9ac4b1f 100644
--- a/chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc
+++ b/chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc
@@ -207,6 +207,7 @@ ash::LauncherID ChromeLauncherDelegate::CreateAppLauncherItem(
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);
@@ -244,7 +245,6 @@ void ChromeLauncherDelegate::LauncherItemClosed(ash::LauncherID id) {
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