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

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

Issue 9702072: Second try for (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
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 6ffd993558055b3785b0f53e53c081b92ed8ad71..dbd03d2e6a09588dc1a3653f6581801685652bf1 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