summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/api_test_base.cc
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 /extensions/renderer/api_test_base.cc
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 'extensions/renderer/api_test_base.cc')
-rw-r--r--extensions/renderer/api_test_base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/renderer/api_test_base.cc b/extensions/renderer/api_test_base.cc
index abf868b..79f95e2 100644
--- a/extensions/renderer/api_test_base.cc
+++ b/extensions/renderer/api_test_base.cc
@@ -214,7 +214,7 @@ void ApiTestEnvironment::RunTestInner(const std::string& test_name,
}
void ApiTestEnvironment::RunPromisesAgain() {
- env()->isolate()->RunMicrotasks();
+ v8::MicrotasksScope::PerformCheckpoint(env()->isolate());
base::MessageLoop::current()->PostTask(
FROM_HERE, base::Bind(&ApiTestEnvironment::RunPromisesAgain,
base::Unretained(this)));