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

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

Issue 9717011: Expose the chrome.windows.* API to platform apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable WindowsApi on Aura.x Created 8 years, 9 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_permission_set.cc
diff --git a/chrome/common/extensions/extension_permission_set.cc b/chrome/common/extensions/extension_permission_set.cc
index 8dcbab25944bd203d2bc0e9002beb1d86445d4ef..d6b1b53d5ba6805f343eb3a24bc7dec191e4e5cd 100644
--- a/chrome/common/extensions/extension_permission_set.cc
+++ b/chrome/common/extensions/extension_permission_set.cc
@@ -342,6 +342,8 @@ void ExtensionAPIPermission::RegisterAllPermissions(
// Register aliases.
info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission);
+ // TODO(mihaip): Remove this alias for platform apps, and only give them
+ // access to the chrome.windows.* APIs, but not the chrome.tabs.* ones.
info->RegisterAlias("tabs", kWindowsPermission);
}
« no previous file with comments | « chrome/common/extensions/api/windows.json ('k') | chrome/test/data/extensions/platform_apps/windows_api/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698