Deleted check for if Aes128Gcm12Encrypter::IsSupported or not beacuse we
[chromium-blink-merge.git] / ash / shelf / shelf_util.cc
blob07dfbbe34e81d25af4faf2a4ea2854d7185bbc68
1 // Copyright 2013 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/shelf/shelf_util.h"
7 #include "ash/launcher/launcher_model.h"
8 #include "ash/launcher/launcher_types.h"
10 namespace ash {
12 int GetBrowserItemIndex(const LauncherModel& launcher_model) {
13 for (size_t i = 0; i < launcher_model.items().size(); i++) {
14 if (launcher_model.items()[i].type == ash::TYPE_BROWSER_SHORTCUT)
15 return i;
17 return -1;
20 } // namespace ash