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

Unified Diff: gin/per_isolate_data.cc

Issue 2589363003: Use timer task runner for V8PerIsolate tasks (Closed)
Patch Set: One more fix Created 4 years 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: gin/per_isolate_data.cc
diff --git a/gin/per_isolate_data.cc b/gin/per_isolate_data.cc
index 261782eeaa5d469b6cb734c51b8c559d45c3c041..dd4ce9daab94f29b1aadacb5c697c06007d7bd55 100644
--- a/gin/per_isolate_data.cc
+++ b/gin/per_isolate_data.cc
@@ -21,13 +21,15 @@ using v8::ObjectTemplate;
namespace gin {
-PerIsolateData::PerIsolateData(Isolate* isolate,
- ArrayBuffer::Allocator* allocator,
- IsolateHolder::AccessMode access_mode)
+PerIsolateData::PerIsolateData(
+ Isolate* isolate,
+ ArrayBuffer::Allocator* allocator,
+ IsolateHolder::AccessMode access_mode,
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: isolate_(isolate),
allocator_(allocator),
access_mode_(access_mode),
- task_runner_(base::ThreadTaskRunnerHandle::Get()) {
+ task_runner_(task_runner) {
isolate_->SetData(kEmbedderNativeGin, this);
}

Powered by Google App Engine
This is Rietveld 408576698