OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/ui/app_list/search/app_result.h" | 5 #include "chrome/browser/ui/app_list/search/app_result.h" |
6 | 6 |
7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
9 #include "chrome/browser/extensions/extension_util.h" | 9 #include "chrome/browser/extensions/extension_util.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/app_list/app_context_menu.h" | 11 #include "chrome/browser/ui/app_list/app_context_menu.h" |
12 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" | 12 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
13 #include "chrome/browser/ui/app_list/search/tokenized_string.h" | |
14 #include "chrome/browser/ui/app_list/search/tokenized_string_match.h" | |
15 #include "chrome/browser/ui/extensions/extension_enable_flow.h" | 13 #include "chrome/browser/ui/extensions/extension_enable_flow.h" |
16 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h" | 14 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h" |
17 #include "content/public/browser/user_metrics.h" | 15 #include "content/public/browser/user_metrics.h" |
18 #include "extensions/browser/extension_registry.h" | 16 #include "extensions/browser/extension_registry.h" |
19 #include "extensions/browser/extension_system.h" | 17 #include "extensions/browser/extension_system.h" |
20 #include "extensions/browser/extension_system_provider.h" | 18 #include "extensions/browser/extension_system_provider.h" |
21 #include "extensions/browser/extensions_browser_client.h" | 19 #include "extensions/browser/extensions_browser_client.h" |
22 #include "extensions/common/constants.h" | 20 #include "extensions/common/constants.h" |
23 #include "extensions/common/extension.h" | 21 #include "extensions/common/extension.h" |
24 #include "extensions/common/extension_icon_set.h" | 22 #include "extensions/common/extension_icon_set.h" |
25 #include "extensions/common/manifest_handlers/icons_handler.h" | 23 #include "extensions/common/manifest_handlers/icons_handler.h" |
26 #include "ui/app_list/app_list_switches.h" | 24 #include "ui/app_list/app_list_switches.h" |
| 25 #include "ui/app_list/search/tokenized_string.h" |
| 26 #include "ui/app_list/search/tokenized_string_match.h" |
27 #include "ui/gfx/color_utils.h" | 27 #include "ui/gfx/color_utils.h" |
28 #include "ui/gfx/image/image_skia_operations.h" | 28 #include "ui/gfx/image/image_skia_operations.h" |
29 | 29 |
30 namespace app_list { | 30 namespace app_list { |
31 | 31 |
32 AppResult::AppResult(Profile* profile, | 32 AppResult::AppResult(Profile* profile, |
33 const std::string& app_id, | 33 const std::string& app_id, |
34 AppListControllerDelegate* controller) | 34 AppListControllerDelegate* controller) |
35 : profile_(profile), | 35 : profile_(profile), |
36 app_id_(app_id), | 36 app_id_(app_id), |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 NotifyItemUninstalled(); | 215 NotifyItemUninstalled(); |
216 } | 216 } |
217 | 217 |
218 void AppResult::OnShutdown(extensions::ExtensionRegistry* registry) { | 218 void AppResult::OnShutdown(extensions::ExtensionRegistry* registry) { |
219 DCHECK_EQ(extension_registry_, registry); | 219 DCHECK_EQ(extension_registry_, registry); |
220 StopObservingExtensionRegistry(); | 220 StopObservingExtensionRegistry(); |
221 } | 221 } |
222 | 222 |
223 } // namespace app_list | 223 } // namespace app_list |
OLD | NEW |