Index: ash/shelf/shelf_util.cc |
diff --git a/ash/shelf/shelf_util.cc b/ash/shelf/shelf_util.cc |
index 07dfbbe34e81d25af4faf2a4ea2854d7185bbc68..7360a7a13cb08e6994a09eac9c52f80bd4136493 100644 |
--- a/ash/shelf/shelf_util.cc |
+++ b/ash/shelf/shelf_util.cc |
@@ -5,13 +5,13 @@ |
#include "ash/shelf/shelf_util.h" |
#include "ash/launcher/launcher_model.h" |
-#include "ash/launcher/launcher_types.h" |
namespace ash { |
-int GetBrowserItemIndex(const LauncherModel& launcher_model) { |
+int GetLauncherItemIndexForType(LauncherItemType type, |
+ const LauncherModel& launcher_model) { |
for (size_t i = 0; i < launcher_model.items().size(); i++) { |
- if (launcher_model.items()[i].type == ash::TYPE_BROWSER_SHORTCUT) |
+ if (launcher_model.items()[i].type == type) |
return i; |
} |
return -1; |