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

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: fix 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 24916813fd73b5dca9f529017f34a0d27c1da2fa..a65b7a1a4cf10d099cf2eff614fed966d71c80dd 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -3134,6 +3134,7 @@ bool Extension::InitFromValue(int flags, string16* error) {
// app.window API to platform apps, with no dependency on any permissions.
// See http://crbug.com/120069.
if (is_platform_app()) {
+ api_permissions.insert(APIPermission::kAppCurrentWindowInternal);
api_permissions.insert(APIPermission::kAppRuntime);
api_permissions.insert(APIPermission::kAppWindow);
}

Powered by Google App Engine
This is Rietveld 408576698