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

Unified Diff: extensions/renderer/app_runtime_custom_bindings.cc

Issue 311263005: Should provide creation context and isolate for WebBlob::toV8Value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: extensions/renderer/app_runtime_custom_bindings.cc
diff --git a/extensions/renderer/app_runtime_custom_bindings.cc b/extensions/renderer/app_runtime_custom_bindings.cc
index 3a1f16923a7ac232555cefd13addf94846024bd0..4302590d0a2cffc770bcab352000bee5da98cb7f 100644
--- a/extensions/renderer/app_runtime_custom_bindings.cc
+++ b/extensions/renderer/app_runtime_custom_bindings.cc
@@ -49,7 +49,8 @@ void CreateBlob(const v8::FunctionCallbackInfo<v8::Value>& args) {
DCHECK(base::StringToInt64(blob_length_string, &blob_length));
blink::WebBlob web_blob =
WebBlob::createFromFile(WebString::fromUTF8(blob_file_path), blob_length);
- args.GetReturnValue().Set(web_blob.toV8Value());
+ args.GetReturnValue().Set(
+ web_blob.toV8Value(args.Holder(), args.GetIsolate()));
}
} // namespace
« no previous file with comments | « chrome/renderer/extensions/page_capture_custom_bindings.cc ('k') | extensions/renderer/blob_native_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698