Search engine setting: Make "Make default" not mouse-focusable.
[chromium-blink-merge.git] / ash / launcher / launcher_util.cc
blobf7ba77f0bfc2f54263a3c9d571358d5e9de95528
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ash/launcher/launcher_util.h"
7 #include "ash/launcher/launcher_model.h"
8 #include "ash/launcher/launcher_types.h"
10 namespace ash {
11 namespace launcher {
13 int GetBrowserItemIndex(const LauncherModel& launcher_model) {
14 for (size_t i = 0; i < launcher_model.items().size(); i++) {
15 if (launcher_model.items()[i].type == ash::TYPE_BROWSER_SHORTCUT)
16 return i;
18 return -1;
21 } // namespace launcher
22 } // namespace ash