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

Unified Diff: apps/shell/browser/shell_extensions_browser_client.cc

Issue 254473011: Introduce chrome.shell.createWindow stub API for app_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps (shell-api) Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « apps/shell/browser/api/shell/shell_api.cc ('k') | apps/shell/common/api/api.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/browser/shell_extensions_browser_client.cc
diff --git a/apps/shell/browser/shell_extensions_browser_client.cc b/apps/shell/browser/shell_extensions_browser_client.cc
index 7dcf7417c868d954a2dd6d2581580c3805ffb638..e84bf096ebb8bfe7ed2d620c3858952d09f5a7ce 100644
--- a/apps/shell/browser/shell_extensions_browser_client.cc
+++ b/apps/shell/browser/shell_extensions_browser_client.cc
@@ -8,6 +8,7 @@
#include "apps/shell/browser/shell_app_window_api.h"
#include "apps/shell/browser/shell_extension_system_factory.h"
#include "apps/shell/browser/shell_extension_web_contents_observer.h"
+#include "apps/shell/common/api/generated_api.h"
#include "base/prefs/pref_service.h"
#include "base/prefs/pref_service_factory.h"
#include "base/prefs/testing_pref_store.h"
@@ -231,6 +232,9 @@ void ShellExtensionsBrowserClient::RegisterExtensionFunctions(
// moved out. Also clean up the comment below. See http://crbug.com/349042.
extensions::api::GeneratedFunctionRegistry::RegisterAll(registry);
+ // Register chrome.shell APIs.
+ apps::shell_api::GeneratedFunctionRegistry::RegisterAll(registry);
+
// Register our simplified implementation for chrome.app.window.create().
registry->RegisterFunction<ShellAppWindowCreateFunction>();
}
« no previous file with comments | « apps/shell/browser/api/shell/shell_api.cc ('k') | apps/shell/common/api/api.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698