diff options
author | dgozman <dgozman@chromium.org> | 2016-03-10 23:50:47 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-11 07:53:09 +0000 |
commit | fdfd5d17ab08e528799125a242893f6f5dcbea43 (patch) | |
tree | eef0b94e34f93d482f3e8b11b0b0cb121f6a19f2 /extensions/renderer/api_test_base.cc | |
parent | 119f7e1b215f82cf545565e9d83a80ca650c6e72 (diff) | |
download | chromium_src-fdfd5d17ab08e528799125a242893f6f5dcbea43.zip chromium_src-fdfd5d17ab08e528799125a242893f6f5dcbea43.tar.gz chromium_src-fdfd5d17ab08e528799125a242893f6f5dcbea43.tar.bz2 |
Use v8::MicrotasksScope internally in V8RecursionScope.
If this sticks we can just remove V8RecursionScope and WebScopedMicrotaskSuppression,
along with other cleanups.
Attempt #3.
First one broke GinJavaBridgeValueConverterTest.TypedArrays.
Second one broke FileManagerBrowserTest family on ChromeOS.
BUG=585949
Review URL: https://codereview.chromium.org/1743763004
Cr-Commit-Position: refs/heads/master@{#380570}
Diffstat (limited to 'extensions/renderer/api_test_base.cc')
-rw-r--r-- | extensions/renderer/api_test_base.cc | 2 |
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))); |