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

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

Issue 68523017: ash: Add GetItemIndexForType() function to ShelfModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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.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;
}

Powered by Google App Engine
This is Rietveld 408576698