| Index: ash/launcher/launcher_model_util.cc
|
| diff --git a/ash/shelf/shelf_util.cc b/ash/launcher/launcher_model_util.cc
|
| similarity index 61%
|
| rename from ash/shelf/shelf_util.cc
|
| rename to ash/launcher/launcher_model_util.cc
|
| index 07dfbbe34e81d25af4faf2a4ea2854d7185bbc68..b1d63a4571adaf9105fa6df716fa20c122f9c532 100644
|
| --- a/ash/shelf/shelf_util.cc
|
| +++ b/ash/launcher/launcher_model_util.cc
|
| @@ -2,16 +2,16 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "ash/shelf/shelf_util.h"
|
| +#include "ash/launcher/launcher_model_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;
|
|
|