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

Unified Diff: content/shell/renderer/test_runner/event_sender.cc

Issue 1152653004: Re-land: gin: Use V8 Maybe APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | gin/arguments.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/event_sender.cc
diff --git a/content/shell/renderer/test_runner/event_sender.cc b/content/shell/renderer/test_runner/event_sender.cc
index a6482a7d3c5bd244f76ad30bdee9e107b112904f..b79e3c4a640afada105d999c53d65b65531d401f 100644
--- a/content/shell/renderer/test_runner/event_sender.cc
+++ b/content/shell/renderer/test_runner/event_sender.cc
@@ -121,8 +121,9 @@ int GetKeyModifiersFromV8(v8::Local<v8::Value> value) {
if (value->IsString()) {
modifier_names.push_back(gin::V8ToString(value));
} else if (value->IsArray()) {
+ v8::Isolate* isolate = blink::mainThreadIsolate();
gin::Converter<std::vector<std::string> >::FromV8(
- NULL, value, &modifier_names);
+ isolate, value, &modifier_names);
bashi 2015/05/29 08:20:34 This is the only diff from the original CL.
jochen (gone - plz use gerrit) 2015/05/29 11:28:29 can you add the Isolate* as argument to this metho
bashi 2015/06/02 00:12:05 Done.
}
return GetKeyModifiers(modifier_names);
}
« no previous file with comments | « no previous file | gin/arguments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698