Index: chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc |
diff --git a/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc |
index 3c3a2ae0393a09a83d831a9d627c33e8c7b24d08..a14767ed46b4b96f909ffc919724574fd5dfc070 100644 |
--- a/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc |
+++ b/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc |
@@ -8,7 +8,6 @@ |
#include "ash/launcher/launcher.h" |
#include "ash/shelf/shelf_model.h" |
-#include "ash/shelf/shelf_model_util.h" |
#include "ash/shell.h" |
#include "ash/wm/window_util.h" |
#include "chrome/browser/profiles/profile.h" |
@@ -60,8 +59,7 @@ void BrowserShortcutLauncherItemController::UpdateBrowserItemState() { |
ash::ShelfModel* model = launcher_controller()->model(); |
// Determine the new browser's active state and change if necessary. |
- int browser_index = |
- ash::GetShelfItemIndexForType(ash::TYPE_BROWSER_SHORTCUT, *model); |
+ int browser_index = model->GetItemIndexForType(ash::TYPE_BROWSER_SHORTCUT); |
DCHECK_GE(browser_index, 0); |
ash::LauncherItem browser_item = model->items()[browser_index]; |
ash::LauncherItemStatus browser_status = ash::STATUS_CLOSED; |