Allow comments in extension config files.
[chromium-blink-merge.git] / ash / app_list / app_list_item_group_model.cc
blobc2fce3ad44844b9453e062aa12f9bc14b7d7ebda
1 // Copyright (c) 2011 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/app_list/app_list_item_group_model.h"
7 namespace ash {
9 AppListItemGroupModel::AppListItemGroupModel(const std::string& title)
10 : title_(title) {
13 AppListItemGroupModel::~AppListItemGroupModel() {
16 void AppListItemGroupModel::AddItem(AppListItemModel* item) {
17 items_.Add(item);
20 AppListItemModel* AppListItemGroupModel::GetItem(int index) {
21 DCHECK(index >= 0 && index < item_count());
22 return items_.item_at(index);
25 } // namespace ash