Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: chrome/browser/ui/app_list/app_list_controller_delegate.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/extensions/extension_service.h" 7 #include "chrome/browser/extensions/extension_service.h"
8 #include "chrome/browser/extensions/extension_system.h"
9 #include "chrome/browser/extensions/extension_util.h" 8 #include "chrome/browser/extensions/extension_util.h"
10 #include "chrome/browser/extensions/install_tracker_factory.h" 9 #include "chrome/browser/extensions/install_tracker_factory.h"
11 #include "chrome/browser/extensions/launch_util.h" 10 #include "chrome/browser/extensions/launch_util.h"
12 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/ui/app_list/extension_uninstaller.h" 12 #include "chrome/browser/ui/app_list/extension_uninstaller.h"
14 #include "chrome/browser/ui/browser_navigator.h" 13 #include "chrome/browser/ui/browser_navigator.h"
15 #include "chrome/common/extensions/extension_constants.h" 14 #include "chrome/common/extensions/extension_constants.h"
16 #include "chrome/common/extensions/manifest_url_handler.h" 15 #include "chrome/common/extensions/manifest_url_handler.h"
17 #include "extensions/browser/extension_registry.h" 16 #include "extensions/browser/extension_registry.h"
17 #include "extensions/browser/extension_system.h"
18 #include "extensions/browser/management_policy.h" 18 #include "extensions/browser/management_policy.h"
19 #include "extensions/common/extension.h" 19 #include "extensions/common/extension.h"
20 #include "extensions/common/extension_set.h" 20 #include "extensions/common/extension_set.h"
21 #include "net/base/url_util.h" 21 #include "net/base/url_util.h"
22 22
23 using extensions::ExtensionRegistry; 23 using extensions::ExtensionRegistry;
24 24
25 namespace { 25 namespace {
26 26
27 const extensions::Extension* GetExtension(Profile* profile, 27 const extensions::Extension* GetExtension(Profile* profile,
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 } 162 }
163 163
164 void AppListControllerDelegate::GetApps(Profile* profile, 164 void AppListControllerDelegate::GetApps(Profile* profile,
165 extensions::ExtensionSet* out_apps) { 165 extensions::ExtensionSet* out_apps) {
166 ExtensionRegistry* registry = ExtensionRegistry::Get(profile); 166 ExtensionRegistry* registry = ExtensionRegistry::Get(profile);
167 DCHECK(registry); 167 DCHECK(registry);
168 out_apps->InsertAll(registry->enabled_extensions()); 168 out_apps->InsertAll(registry->enabled_extensions());
169 out_apps->InsertAll(registry->disabled_extensions()); 169 out_apps->InsertAll(registry->disabled_extensions());
170 out_apps->InsertAll(registry->terminated_extensions()); 170 out_apps->InsertAll(registry->terminated_extensions());
171 } 171 }
OLDNEW
« no previous file with comments | « chrome/browser/themes/theme_syncable_service.cc ('k') | chrome/browser/ui/app_list/app_list_controller_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698