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

Unified Diff: extensions/renderer/app_window_custom_bindings.cc

Issue 1167423002: Use V8 Maybe APIs in extensions/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_window_custom_bindings.cc
diff --git a/extensions/renderer/app_window_custom_bindings.cc b/extensions/renderer/app_window_custom_bindings.cc
index b3907e0eda42c7a6a8d67a3cc97c63d6aaf72f08..d756e539f207fcaad4139038aaf9859aec39bc19 100644
--- a/extensions/renderer/app_window_custom_bindings.cc
+++ b/extensions/renderer/app_window_custom_bindings.cc
@@ -75,9 +75,9 @@ void AppWindowCustomBindings::GetView(
if (!args[1]->IsBoolean())
return;
- int view_id = args[0]->Int32Value();
+ int view_id = args[0].As<v8::Int32>()->Value();
- bool inject_titlebar = args[1]->BooleanValue();
+ bool inject_titlebar = args[1].As<v8::Boolean>()->Value();
if (view_id == MSG_ROUTING_NONE)
return;
« no previous file with comments | « extensions/renderer/app_runtime_custom_bindings.cc ('k') | extensions/renderer/binding_generating_native_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698