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

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

Issue 264743014: Move chrome.runtime to //extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: prevent runtime impl from handling invalid update versions Created 6 years, 7 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 "apps/shell/browser/shell_extension_web_contents_observer.h" 9 #include "apps/shell/browser/shell_extension_web_contents_observer.h"
10 #include "apps/shell/browser/shell_runtime_api_delegate.h"
10 #include "apps/shell/common/api/generated_api.h" 11 #include "apps/shell/common/api/generated_api.h"
11 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
12 #include "base/prefs/pref_service_factory.h" 13 #include "base/prefs/pref_service_factory.h"
13 #include "base/prefs/testing_pref_store.h" 14 #include "base/prefs/testing_pref_store.h"
14 #include "chrome/common/extensions/api/generated_api.h" 15 #include "chrome/common/extensions/api/generated_api.h"
15 #include "components/user_prefs/pref_registry_syncable.h" 16 #include "components/user_prefs/pref_registry_syncable.h"
16 #include "components/user_prefs/user_prefs.h" 17 #include "components/user_prefs/user_prefs.h"
17 #include "extensions/browser/api/extensions_api_client.h" 18 #include "extensions/browser/api/extensions_api_client.h"
18 #include "extensions/browser/app_sorting.h" 19 #include "extensions/browser/app_sorting.h"
19 #include "extensions/browser/extension_function_registry.h" 20 #include "extensions/browser/extension_function_registry.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry); 229 extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry);
229 230
230 // TODO(rockot): Remove dependency on src/chrome once we have some core APIs 231 // TODO(rockot): Remove dependency on src/chrome once we have some core APIs
231 // moved out. Also clean up the comment below. See http://crbug.com/349042. 232 // moved out. Also clean up the comment below. See http://crbug.com/349042.
232 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry); 233 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry);
233 234
234 // Register chrome.shell APIs. 235 // Register chrome.shell APIs.
235 apps::shell_api::GeneratedFunctionRegistry::RegisterAll(registry); 236 apps::shell_api::GeneratedFunctionRegistry::RegisterAll(registry);
236 } 237 }
237 238
239 scoped_ptr<RuntimeAPIDelegate>
240 ShellExtensionsBrowserClient::CreateRuntimeAPIDelegate(
241 content::BrowserContext* context) const {
242 return scoped_ptr<RuntimeAPIDelegate>(new apps::ShellRuntimeAPIDelegate());
243 }
244
238 } // namespace extensions 245 } // namespace extensions
OLDNEW
« no previous file with comments | « apps/shell/browser/shell_extensions_browser_client.h ('k') | apps/shell/browser/shell_runtime_api_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698