| Index: ash/shell/app_list.cc
|
| diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc
|
| index 7448de447587175f3a8dbfc7aa39fcc0f53e7b1f..6768a677ee90c61ca9a493b378185c327d875932 100644
|
| --- a/ash/shell/app_list.cc
|
| +++ b/ash/shell/app_list.cc
|
| @@ -195,14 +195,14 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate {
|
| ExampleAppListViewDelegate() : model_(NULL) {}
|
|
|
| private:
|
| - void PopulateApps(app_list::AppListModel::Apps* apps) {
|
| + void PopulateApps() {
|
| for (int i = 0;
|
| i < static_cast<int>(WindowTypeLauncherItem::LAST_TYPE);
|
| ++i) {
|
| WindowTypeLauncherItem::Type type =
|
| static_cast<WindowTypeLauncherItem::Type>(i);
|
| std::string id = base::StringPrintf("%d", i);
|
| - apps->Add(new WindowTypeLauncherItem(id, type));
|
| + model_->AddItem(new WindowTypeLauncherItem(id, type));
|
| }
|
| }
|
|
|
| @@ -233,7 +233,7 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate {
|
|
|
| virtual void InitModel(app_list::AppListModel* model) OVERRIDE {
|
| model_ = model;
|
| - PopulateApps(model_->apps());
|
| + PopulateApps();
|
| DecorateSearchBox(model_->search_box());
|
| }
|
|
|
|
|