| 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();
|
| }
|
|
|