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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp

Issue 2836093004: Remove V8Call and replace with v8::Maybe<T>::To and v8::MaybeLocal<T>::ToLocal. (Closed)
Patch Set: rebase Created 3 years, 8 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: third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp
index acd06af145e6bba2298e419f941ef8f4efeb1835..e56c2f03d6b7bd59788a2be792167943108c221d 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp
@@ -107,10 +107,12 @@ void V8MessageEvent::initMessageEventMethodCustom(
TOSTRING_VOID(V8StringResource<>, type_arg, info[0]);
bool can_bubble_arg = false;
bool cancelable_arg = false;
- if (!V8Call(info[1]->BooleanValue(info.GetIsolate()->GetCurrentContext()),
- can_bubble_arg) ||
- !V8Call(info[2]->BooleanValue(info.GetIsolate()->GetCurrentContext()),
- cancelable_arg))
+ if (!info[1]
+ ->BooleanValue(info.GetIsolate()->GetCurrentContext())
+ .To(&can_bubble_arg) ||
+ !info[2]
+ ->BooleanValue(info.GetIsolate()->GetCurrentContext())
+ .To(&cancelable_arg))
return;
v8::Local<v8::Value> data_arg = info[3];
TOSTRING_VOID(V8StringResource<>, origin_arg, info[4]);

Powered by Google App Engine
This is Rietveld 408576698