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

Unified Diff: gin/v8_platform.cc

Issue 1641513004: Update //base to chromium 9659b08ea5a34f889dc4166217f438095ddc10d2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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 | « gin/per_isolate_data.cc ('k') | gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/v8_platform.cc
diff --git a/gin/v8_platform.cc b/gin/v8_platform.cc
index c8ee770b61ce2bf962efc3a7833058196f02d029..244534ffbac79a2736747a8255b6f065ddaacfaf 100644
--- a/gin/v8_platform.cc
+++ b/gin/v8_platform.cc
@@ -6,7 +6,6 @@
#include "base/bind.h"
#include "base/location.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/threading/thread.h"
#include "gin/per_isolate_data.h"
@@ -32,13 +31,12 @@ void V8Platform::CallOnBackgroundThread(
background_thread_.reset(new base::Thread("gin_background"));
background_thread_->Start();
}
- background_thread_->message_loop_proxy()->PostTask(
- FROM_HERE,
- base::Bind(&v8::Task::Run, base::Owned(task)));
+ background_thread_->task_runner()->PostTask(
+ FROM_HERE, base::Bind(&v8::Task::Run, base::Owned(task)));
}
void V8Platform::CallOnForegroundThread(v8::Isolate* isolate, v8::Task* task) {
- PerIsolateData::From(isolate)->message_loop_proxy()->PostTask(
+ PerIsolateData::From(isolate)->task_runner()->PostTask(
FROM_HERE, base::Bind(&v8::Task::Run, base::Owned(task)));
}
« no previous file with comments | « gin/per_isolate_data.cc ('k') | gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698