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

Unified Diff: extensions/renderer/v8_schema_registry.cc

Issue 2949143002: [Extensions Bindings] Support ArrayBufferView in idl files (Closed)
Patch Set: extend comment Created 3 years, 6 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 | « extensions/renderer/bindings/argument_spec.cc ('k') | tools/json_schema_compiler/idl_schema.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/v8_schema_registry.cc
diff --git a/extensions/renderer/v8_schema_registry.cc b/extensions/renderer/v8_schema_registry.cc
index 87117f68a477bb936235b54e31f74f55a92fa052..bdb9536d7e5cee31203e65db9718c2de65a97e83 100644
--- a/extensions/renderer/v8_schema_registry.cc
+++ b/extensions/renderer/v8_schema_registry.cc
@@ -67,7 +67,7 @@ class SchemaRegistryNativeHandler : public ObjectBackedNativeHandler {
std::string type;
if (args[0]->IsArray())
type = "array";
- else if (args[0]->IsArrayBuffer())
+ else if (args[0]->IsArrayBuffer() || args[0]->IsArrayBufferView())
type = "binary";
else
type = "object";
« no previous file with comments | « extensions/renderer/bindings/argument_spec.cc ('k') | tools/json_schema_compiler/idl_schema.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698