OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "athena/content/public/content_app_model_builder.h" | 5 #include "athena/content/public/content_app_model_builder.h" |
6 | 6 |
7 #include "apps/shell/browser/shell_extension_system.h" | |
8 #include "athena/activity/public/activity_factory.h" | 7 #include "athena/activity/public/activity_factory.h" |
9 #include "athena/activity/public/activity_manager.h" | 8 #include "athena/activity/public/activity_manager.h" |
10 #include "extensions/browser/extension_icon_image.h" | 9 #include "extensions/browser/extension_icon_image.h" |
11 #include "extensions/common/constants.h" | 10 #include "extensions/common/constants.h" |
12 #include "extensions/common/extension.h" | 11 #include "extensions/common/extension.h" |
13 #include "extensions/common/manifest_handlers/icons_handler.h" | 12 #include "extensions/common/manifest_handlers/icons_handler.h" |
| 13 #include "extensions/shell/browser/shell_extension_system.h" |
14 #include "ui/app_list/app_list_item.h" | 14 #include "ui/app_list/app_list_item.h" |
15 #include "ui/app_list/app_list_model.h" | 15 #include "ui/app_list/app_list_model.h" |
16 | 16 |
17 using extensions::ShellExtensionSystem; | 17 using extensions::ShellExtensionSystem; |
18 | 18 |
19 namespace athena { | 19 namespace athena { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 ShellExtensionSystem* GetShellExtensionSystem( | 23 ShellExtensionSystem* GetShellExtensionSystem( |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 ShellExtensionSystem* extension_system = | 124 ShellExtensionSystem* extension_system = |
125 GetShellExtensionSystem(browser_context_); | 125 GetShellExtensionSystem(browser_context_); |
126 if (extension_system && extension_system->extension()) { | 126 if (extension_system && extension_system->extension()) { |
127 model->AddItem(scoped_ptr<app_list::AppListItem>( | 127 model->AddItem(scoped_ptr<app_list::AppListItem>( |
128 new AppItem(extension_system->extension(), browser_context_))); | 128 new AppItem(extension_system->extension(), browser_context_))); |
129 } | 129 } |
130 } | 130 } |
131 | 131 |
132 } // namespace athena | 132 } // namespace athena |
OLD | NEW |