Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc |
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc |
index d45ca5b0928ce9c57461545e9e5e89ceff3d90e0..04d99fcf92b3535652c841e6448cb2f6f3924ceb 100644 |
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc |
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc |
@@ -14,7 +14,6 @@ |
#include "ash/root_window_controller.h" |
#include "ash/shelf/shelf_layout_manager.h" |
#include "ash/shelf/shelf_model.h" |
-#include "ash/shelf/shelf_model_util.h" |
#include "ash/shelf/shelf_widget.h" |
#include "ash/shell.h" |
#include "ash/wm/window_util.h" |
@@ -1028,8 +1027,7 @@ ash::LauncherID ChromeLauncherController::GetLauncherIDForWebContents( |
ash::LauncherID id = GetLauncherIDForAppID(app_id); |
if (app_id.empty() || !id) { |
- int browser_index = |
- ash::GetShelfItemIndexForType(ash::TYPE_BROWSER_SHORTCUT, *model_); |
+ int browser_index = model_->GetItemIndexForType(ash::TYPE_BROWSER_SHORTCUT); |
return model_->items()[browser_index].id; |
} |