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

Unified Diff: chrome/renderer/resources/extensions/binding.js

Issue 38573008: Add "platforms" key in IDL schema compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test Created 7 years, 2 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 | « no previous file | tools/json_schema_compiler/idl_schema.py » ('j') | tools/json_schema_compiler/idl_schema.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/binding.js
diff --git a/chrome/renderer/resources/extensions/binding.js b/chrome/renderer/resources/extensions/binding.js
index 4bb9b99bfbdece26a428b09c1b9b5ed391275adb..cc38da81044ff5ccc0d58d30d2b6b60c714b933a 100644
--- a/chrome/renderer/resources/extensions/binding.js
+++ b/chrome/renderer/resources/extensions/binding.js
@@ -114,7 +114,7 @@ function getPlatform() {
}
function isPlatformSupported(schemaNode, platform) {
- return !schemaNode.platforms ||
+ return !schemaNode.platforms || schemaNode.platforms.length == 0 ||
not at google - send to devlin 2013/10/25 17:00:08 if something specificies "platforms: []" then it s
Haojian Wu 2013/10/26 03:15:51 Done.
schemaNode.platforms.indexOf(platform) > -1;
}
« no previous file with comments | « no previous file | tools/json_schema_compiler/idl_schema.py » ('j') | tools/json_schema_compiler/idl_schema.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698