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

Unified Diff: ash/shelf/shelf_model_util.cc

Issue 68523017: ash: Add GetItemIndexForType() function to ShelfModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « ash/shelf/shelf_model_util.h ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_model_util.cc
diff --git a/ash/shelf/shelf_model_util.cc b/ash/shelf/shelf_model_util.cc
deleted file mode 100644
index e1fe8277af3214cedfe091cb4e054b19a9e3f6f2..0000000000000000000000000000000000000000
--- a/ash/shelf/shelf_model_util.cc
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/shelf/shelf_model_util.h"
-
-#include "ash/shelf/shelf_model.h"
-
-namespace ash {
-
-int GetShelfItemIndexForType(LauncherItemType type,
- const ShelfModel& shelf_model) {
- for (size_t i = 0; i < shelf_model.items().size(); i++) {
- if (shelf_model.items()[i].type == type)
- return i;
- }
- return -1;
-}
-
-} // namespace ash
« no previous file with comments | « ash/shelf/shelf_model_util.h ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698