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

Unified Diff: chrome/test/data/extensions/api_test/stubs/content_script.js

Issue 13604005: Prevent chrome.app JSON schema from loading on every page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | « chrome/test/data/extensions/api_test/crazy_extension/background.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/stubs/content_script.js
diff --git a/chrome/test/data/extensions/api_test/stubs/content_script.js b/chrome/test/data/extensions/api_test/stubs/content_script.js
index 1b3f2ebc9e695ccdb2179b1c11d37915c43a22cc..6139d446b61706fec4ec2369194c30a4010d0439 100644
--- a/chrome/test/data/extensions/api_test/stubs/content_script.js
+++ b/chrome/test/data/extensions/api_test/stubs/content_script.js
@@ -31,7 +31,11 @@ chrome.extension.sendRequest("getApi", function(apis) {
}
var path = namespace + "." + entry.name;
- if (module.unprivileged || entry.unprivileged) {
+ // TODO(cduvall): Make this inspect _api_features.json.
+ // http://crbug.com/232247
+ // Manually add chrome.app to the unprivileged APIs since it uses the
+ // feature system now.
+ if (module.unprivileged || entry.unprivileged || namespace == 'app') {
unprivilegedPaths.push(path);
} else {
privilegedPaths.push(path);
« no previous file with comments | « chrome/test/data/extensions/api_test/crazy_extension/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698