diff options
author | dgozman <dgozman@chromium.org> | 2016-03-08 18:14:53 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-09 02:16:12 +0000 |
commit | 95a3bd544fe93629b209797d3251423f3d674463 (patch) | |
tree | 7b31a00668596c94556a41f068a2992bed3ecd7b /extensions/renderer/api_test_base.cc | |
parent | 3462e690304786b5db00051953cb1f09af474641 (diff) | |
download | chromium_src-95a3bd544fe93629b209797d3251423f3d674463.zip chromium_src-95a3bd544fe93629b209797d3251423f3d674463.tar.gz chromium_src-95a3bd544fe93629b209797d3251423f3d674463.tar.bz2 |
Use v8::MicrotasksScope internally in V8RecursionScope.
If this sticks we can just remove V8RecursionScope and WebScopedMicrotaskSuppression,
along with other cleanups.
Attempt #2. Previous one broke GinJavaBridgeValueConverterTest.TypedArrays.
BUG=585949
Review URL: https://codereview.chromium.org/1743763004
Cr-Commit-Position: refs/heads/master@{#380033}
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))); |