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

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

Issue 9460002: Convert app_bindings.js to the schema_generated_bindings.js infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make test extension ID tests pass 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
« no previous file with comments | « chrome/test/data/extensions/api_test/content_scripts/extension_iframe/iframe.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 79e491c17524621cf7cde49f8767093dd07779ff..e6bf5a963244a44d73b01e64177efe6086f20259 100644
--- a/chrome/test/data/extensions/api_test/stubs/content_script.js
+++ b/chrome/test/data/extensions/api_test/stubs/content_script.js
@@ -25,7 +25,7 @@ chrome.extension.sendRequest("getApi", function(apis) {
return;
module[section].forEach(function(entry) {
var path = namespace + "." + entry.name;
- if (entry.unprivileged) {
+ if (module.unprivileged || entry.unprivileged) {
unprivilegedPaths.push(path);
} else {
privilegedPaths.push(path);
@@ -36,7 +36,7 @@ chrome.extension.sendRequest("getApi", function(apis) {
if (module.properties) {
for (var propName in module.properties) {
var path = namespace + "." + propName;
- if (module.properties[propName].unprivileged) {
+ if (module.unprivileged || module.properties[propName].unprivileged) {
unprivilegedPaths.push(path);
} else {
privilegedPaths.push(path);
@@ -69,7 +69,7 @@ function testPath(path, expectError) {
if (typeof(module) == "undefined")
return true;
} else {
- // This is the last component - we expect it to either be defined or
+ // This is the last component - we expect it to either be undefined or
// to throw an error on access.
try {
if (typeof(module[parts[i]]) == "undefined" &&
« no previous file with comments | « chrome/test/data/extensions/api_test/content_scripts/extension_iframe/iframe.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698