| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/app_list_controller_delegate.h" | 5 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "chrome/browser/extensions/extension_util.h" | 8 #include "chrome/browser/extensions/extension_util.h" |
| 9 #include "chrome/browser/extensions/install_tracker_factory.h" | 9 #include "chrome/browser/extensions/install_tracker_factory.h" |
| 10 #include "chrome/browser/extensions/launch_util.h" | 10 #include "chrome/browser/extensions/launch_util.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "extensions/common/manifest_handlers/options_page_info.h" | 21 #include "extensions/common/manifest_handlers/options_page_info.h" |
| 22 #include "extensions/common/manifest_url_handlers.h" | 22 #include "extensions/common/manifest_url_handlers.h" |
| 23 #include "net/base/url_util.h" | 23 #include "net/base/url_util.h" |
| 24 #include "ui/app_list/app_list_folder_item.h" | 24 #include "ui/app_list/app_list_folder_item.h" |
| 25 #include "ui/app_list/app_list_item.h" | 25 #include "ui/app_list/app_list_item.h" |
| 26 #include "ui/app_list/app_list_model.h" | 26 #include "ui/app_list/app_list_model.h" |
| 27 #include "ui/app_list/app_list_switches.h" | 27 #include "ui/app_list/app_list_switches.h" |
| 28 #include "ui/gfx/geometry/rect.h" | 28 #include "ui/gfx/geometry/rect.h" |
| 29 | 29 |
| 30 #if defined(ENABLE_RLZ) | 30 #if defined(ENABLE_RLZ) |
| 31 #include "components/rlz/rlz_tracker.h" | 31 #include "chrome/browser/rlz/rlz.h" |
| 32 #endif | 32 #endif |
| 33 | 33 |
| 34 using extensions::ExtensionRegistry; | 34 using extensions::ExtensionRegistry; |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 const extensions::Extension* GetExtension(Profile* profile, | 38 const extensions::Extension* GetExtension(Profile* profile, |
| 39 const std::string& extension_id) { | 39 const std::string& extension_id) { |
| 40 const ExtensionRegistry* registry = ExtensionRegistry::Get(profile); | 40 const ExtensionRegistry* registry = ExtensionRegistry::Get(profile); |
| 41 const extensions::Extension* extension = | 41 const extensions::Extension* extension = |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 extensions::ExtensionSet* out_apps) { | 206 extensions::ExtensionSet* out_apps) { |
| 207 ExtensionRegistry* registry = ExtensionRegistry::Get(profile); | 207 ExtensionRegistry* registry = ExtensionRegistry::Get(profile); |
| 208 DCHECK(registry); | 208 DCHECK(registry); |
| 209 out_apps->InsertAll(registry->enabled_extensions()); | 209 out_apps->InsertAll(registry->enabled_extensions()); |
| 210 out_apps->InsertAll(registry->disabled_extensions()); | 210 out_apps->InsertAll(registry->disabled_extensions()); |
| 211 out_apps->InsertAll(registry->terminated_extensions()); | 211 out_apps->InsertAll(registry->terminated_extensions()); |
| 212 } | 212 } |
| 213 | 213 |
| 214 void AppListControllerDelegate::OnSearchStarted() { | 214 void AppListControllerDelegate::OnSearchStarted() { |
| 215 #if defined(ENABLE_RLZ) | 215 #if defined(ENABLE_RLZ) |
| 216 rlz::RLZTracker::RecordAppListSearch(); | 216 RLZTracker::RecordAppListSearch(); |
| 217 #endif | 217 #endif |
| 218 } | 218 } |
| OLD | NEW |