| 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..34bddec38112fa72f9479dfea68cce55b77dd888 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
|
| @@ -383,8 +383,10 @@ ash::LauncherID ChromeLauncherControllerPerBrowser::CreateAppLauncherItem(
|
| const std::string& app_id,
|
| ash::LauncherItemStatus status) {
|
| DCHECK(controller);
|
| - return InsertAppLauncherItem(controller, app_id, status,
|
| - model_->item_count());
|
| + // Panels are inserted on the left so as not to push all existing panels over.
|
| + int index = controller->GetLauncherItemType() == ash::TYPE_APP_PANEL ?
|
| + 0 : model_->item_count();
|
| + return InsertAppLauncherItem(controller, app_id, status, index);
|
| }
|
|
|
| void ChromeLauncherControllerPerBrowser::SetItemStatus(
|
|
|