Index: chrome/renderer/extensions/extension_process_bindings.cc |
diff --git a/chrome/renderer/extensions/extension_process_bindings.cc b/chrome/renderer/extensions/extension_process_bindings.cc |
index 077c524d14a334b03242d2d4eef89240150335ef..d96743cc9298ed88d9403869523f2d681120cdc1 100644 |
--- a/chrome/renderer/extensions/extension_process_bindings.cc |
+++ b/chrome/renderer/extensions/extension_process_bindings.cc |
@@ -467,12 +467,12 @@ class ExtensionImpl : public ExtensionBase { |
// Since we do the serialization in the v8 extension, we should always get |
// valid JSON. |
- if (!value_args.get() || !value_args->AsList()) { |
+ if (!value_args.get() || !value_args->IsType(Value::TYPE_LIST)) { |
NOTREACHED() << "Invalid JSON passed to StartRequest."; |
return v8::Undefined(); |
} |
- return StartRequestCommon(args, value_args->AsList()); |
+ return StartRequestCommon(args, static_cast<ListValue*>(value_args.get())); |
} |
static bool ConvertImageDataToBitmapValue( |