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

Side by Side Diff: apps/shell/browser/shell_extensions_browser_client.cc

Issue 185293017: Move ExtensionFunctionRegistry out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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 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 "apps/shell/browser/shell_extensions_browser_client.h" 5 #include "apps/shell/browser/shell_extensions_browser_client.h"
6 6
7 #include "apps/shell/browser/shell_app_sorting.h" 7 #include "apps/shell/browser/shell_app_sorting.h"
8 #include "apps/shell/browser/shell_extension_system_factory.h" 8 #include "apps/shell/browser/shell_extension_system_factory.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/prefs/pref_service_factory.h" 10 #include "base/prefs/pref_service_factory.h"
11 #include "base/prefs/testing_pref_store.h" 11 #include "base/prefs/testing_pref_store.h"
12 #include "chrome/common/extensions/api/generated_api.h"
12 #include "components/user_prefs/pref_registry_syncable.h" 13 #include "components/user_prefs/pref_registry_syncable.h"
13 #include "components/user_prefs/user_prefs.h" 14 #include "components/user_prefs/user_prefs.h"
14 #include "extensions/browser/app_sorting.h" 15 #include "extensions/browser/app_sorting.h"
15 #include "extensions/browser/extension_prefs.h" 16 #include "extensions/browser/extension_prefs.h"
16 17
17 using content::BrowserContext; 18 using content::BrowserContext;
18 19
19 namespace extensions { 20 namespace extensions {
20 namespace { 21 namespace {
21 22
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 BrowserContext* context) { 148 BrowserContext* context) {
148 // app_shell doesn't monitor API function calls or events. 149 // app_shell doesn't monitor API function calls or events.
149 return NULL; 150 return NULL;
150 } 151 }
151 152
152 ExtensionSystemProvider* 153 ExtensionSystemProvider*
153 ShellExtensionsBrowserClient::GetExtensionSystemFactory() { 154 ShellExtensionsBrowserClient::GetExtensionSystemFactory() {
154 return ShellExtensionSystemFactory::GetInstance(); 155 return ShellExtensionSystemFactory::GetInstance();
155 } 156 }
156 157
158 void ShellExtensionsBrowserClient::RegisterAdditionalExtensionFunctions(
159 ExtensionFunctionRegistry* registry) const {
160 // TODO(rockot): Remove this once we have enough APIs moved out of src/chrome
161 // See http://crbug.com/349042
162 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry);
163 }
164
157 } // namespace extensions 165 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698