Index: ash/app_list/app_list_model.cc |
diff --git a/ash/app_list/app_list_model.cc b/ash/app_list/app_list_model.cc |
index 8362dd67c69f6f395f0527a09ac14a8ce35fdff4..d0eb2359a1fddbe3c3d2d2775ccceff1b404be91 100644 |
--- a/ash/app_list/app_list_model.cc |
+++ b/ash/app_list/app_list_model.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2012 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. |
@@ -12,21 +12,21 @@ AppListModel::AppListModel() { |
AppListModel::~AppListModel() { |
} |
-void AppListModel::AddGroup(AppListItemGroupModel* group) { |
- groups_.Add(group); |
+void AppListModel::AddItem(AppListItemModel* item) { |
+ items_.Add(item); |
} |
-AppListItemGroupModel* AppListModel::GetGroup(int index) { |
- DCHECK(index >= 0 && index < group_count()); |
- return groups_.item_at(index); |
+AppListItemModel* AppListModel::GetItem(int index) { |
+ DCHECK(index >= 0 && index < item_count()); |
+ return items_.item_at(index); |
} |
void AppListModel::AddObserver(ui::ListModelObserver* observer) { |
- groups_.AddObserver(observer); |
+ items_.AddObserver(observer); |
} |
void AppListModel::RemoveObserver(ui::ListModelObserver* observer) { |
- groups_.RemoveObserver(observer); |
+ items_.RemoveObserver(observer); |
} |
} // namespace ash |