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

Unified Diff: chrome/common/extensions/extension.cc

Issue 10834261: Move chrome.experimental.app.onLaunched event handler to chrome.app.runtime.onLaunched. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced/merged, resolved conflicts. Created 8 years, 4 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
Index: chrome/common/extensions/extension.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index fffe1f163a208d3cd8e58229db6f6abdceb6c519..03ef7b6c0fde33ac88ee3535930121ad6d57afd2 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -3130,8 +3130,10 @@ bool Extension::InitFromValue(int flags, string16* error) {
// TODO(jeremya/kalman) do this via the features system by exposing the
// app.window API to platform apps, with no dependency on any permissions.
// See http://crbug.com/120069.
- if (is_platform_app())
+ if (is_platform_app()) {
+ api_permissions.insert(APIPermission::kAppRuntime);
api_permissions.insert(APIPermission::kAppWindow);
+ }
APIPermissionSet optional_api_permissions;
URLPatternSet optional_host_permissions;

Powered by Google App Engine
This is Rietveld 408576698