summaryrefslogtreecommitdiffstats
path: root/gin
diff options
context:
space:
mode:
authordgozman <dgozman@chromium.org>2016-03-07 09:28:32 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-07 17:29:42 +0000
commit83013584d091473d3a5fee6a823bc63b223a472c (patch)
treeae3d35becbd58747eb42aa050c0d15b15d58e2b5 /gin
parent4b0a06a8f4c65caa3c2071e2ae00bf3252b148f7 (diff)
downloadchromium_src-83013584d091473d3a5fee6a823bc63b223a472c.zip
chromium_src-83013584d091473d3a5fee6a823bc63b223a472c.tar.gz
chromium_src-83013584d091473d3a5fee6a823bc63b223a472c.tar.bz2
Use v8::MicrotasksScope internally in V8RecursionScope.
If this sticks we can just remove V8RecursionScope and WebScopedMicrotaskSuppression, along with other cleanups. BUG=585949 Review URL: https://codereview.chromium.org/1743763004 Cr-Commit-Position: refs/heads/master@{#379574}
Diffstat (limited to 'gin')
-rw-r--r--gin/run_microtasks_observer.cc2
-rw-r--r--gin/run_microtasks_observer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gin/run_microtasks_observer.cc b/gin/run_microtasks_observer.cc
index f453a66..0ca0078 100644
--- a/gin/run_microtasks_observer.cc
+++ b/gin/run_microtasks_observer.cc
@@ -15,7 +15,7 @@ void RunMicrotasksObserver::WillProcessTask(const base::PendingTask& task) {
void RunMicrotasksObserver::DidProcessTask(const base::PendingTask& task) {
v8::Isolate::Scope scope(isolate_);
- isolate_->RunMicrotasks();
+ v8::MicrotasksScope::PerformCheckpoint(isolate_);
}
} // namespace gin
diff --git a/gin/run_microtasks_observer.h b/gin/run_microtasks_observer.h
index 7f1431f..ca160be 100644
--- a/gin/run_microtasks_observer.h
+++ b/gin/run_microtasks_observer.h
@@ -12,7 +12,7 @@ namespace gin {
// Runs any pending v8 Microtasks each time a task is completed.
// TODO(hansmuller); At some point perhaps this can be replaced with
-// the (currently experimental) Isolate::SetAutorunMicrotasks() method.
+// the (currently experimental) v8::MicrotasksPolicy::kAuto method.
class RunMicrotasksObserver : public base::MessageLoop::TaskObserver {
public: