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

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

Issue 10878040: Move context-sensitive app.window.* functions to app.window.current().* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 aeda254063492cb5906fdddb529f9eca4ec454d4..59f623fe1916c2e64a224c4d5b83a4f2cfe7de20 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -3134,6 +3134,7 @@ bool Extension::InitFromValue(int flags, string16* error) {
if (is_platform_app()) {
api_permissions.insert(APIPermission::kAppRuntime);
api_permissions.insert(APIPermission::kAppWindow);
+ api_permissions.insert(APIPermission::kAppCurrentWindow);
}
APIPermissionSet optional_api_permissions;

Powered by Google App Engine
This is Rietveld 408576698