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

Unified Diff: ash/shell.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: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 8a2f524bc7b8c4d54012fc2a9ce39ade41e784b2..67340198fe8d62ee785108eb5da56999d832902a 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -43,7 +43,6 @@
#include "ash/shelf/app_list_shelf_item_delegate.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_delegate.h"
#include "ash/shell_factory.h"
@@ -511,7 +510,7 @@ LauncherDelegate* Shell::GetLauncherDelegate() {
// Finding the shelf model's location of the app list and setting its
// LauncherItemDelegate.
- int app_list_index = GetShelfItemIndexForType(TYPE_APP_LIST, *shelf_model_);
+ int app_list_index = shelf_model_->GetItemIndexForType(TYPE_APP_LIST);
DCHECK_GE(app_list_index, 0);
LauncherID app_list_id = shelf_model_->items()[app_list_index].id;
DCHECK(app_list_id);
« no previous file with comments | « ash/shelf/shelf_model_util.cc ('k') | chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698