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

Unified Diff: extensions/renderer/document_custom_bindings.cc

Issue 744723002: remove some calls to to-be-deprecated v8::Value::To* functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/blob_native_handler.cc ('k') | extensions/renderer/event_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/document_custom_bindings.cc
diff --git a/extensions/renderer/document_custom_bindings.cc b/extensions/renderer/document_custom_bindings.cc
index edaed987addc0ab9b2fdd8a374d84e45d35b2227..bb9d7f77023cc7f27e1a2e90da52f978999b5275 100644
--- a/extensions/renderer/document_custom_bindings.cc
+++ b/extensions/renderer/document_custom_bindings.cc
@@ -30,7 +30,7 @@ void DocumentCustomBindings::RegisterElement(
}
std::string element_name(*v8::String::Utf8Value(args[0]));
- v8::Local<v8::Object> options = args[1]->ToObject();
+ v8::Local<v8::Object> options = v8::Local<v8::Object>::Cast(args[1]);
blink::WebExceptionCode ec = 0;
blink::WebDocument document = context()->web_frame()->document();
« no previous file with comments | « extensions/renderer/blob_native_handler.cc ('k') | extensions/renderer/event_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698