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

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: fix typo 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 600c77e007f3b8e7085fa7410573cbb06ea15ef6..36a0b9e3f36debd9cc2e27d34aef7a4177a933c3 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -42,7 +42,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"
@@ -499,7 +498,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);

Powered by Google App Engine
This is Rietveld 408576698