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

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

Issue 17673004: Insert panel icons on the left of other panel icons. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix test assertions. Created 7 years, 6 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: chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc
index 1bc7d3543a16d575a4f7f770cf64bc10f59cbaa4..61cc2632f38e6f0c3b5cf0a29642d897cdbde18d 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc
@@ -384,7 +384,7 @@ ash::LauncherID ChromeLauncherControllerPerBrowser::CreateAppLauncherItem(
ash::LauncherItemStatus status) {
DCHECK(controller);
return InsertAppLauncherItem(controller, app_id, status,
- model_->item_count());
+ ash::LauncherModel::kAutomaticIndex);
}
void ChromeLauncherControllerPerBrowser::SetItemStatus(
@@ -1179,7 +1179,7 @@ void ChromeLauncherControllerPerBrowser::DoPinAppWithID(
Pin(launcher_id);
} else {
// Otherwise, create a shortcut item for it.
- CreateAppShortcutLauncherItem(app_id, model_->item_count());
+ CreateAppShortcutLauncherItem(app_id, ash::LauncherModel::kAutomaticIndex);
if (CanPin())
PersistPinnedState();
}

Powered by Google App Engine
This is Rietveld 408576698