diff options
author | kolczyk <kolczyk@opera.com> | 2015-06-03 04:49:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-03 11:50:41 +0000 |
commit | 65e946531a3de45739107ea1e2a58a314d245f9b (patch) | |
tree | 393b3a1d6897645419dccec763a4de5062b0e730 | |
parent | ed20621816d51f158514acf1b20de0711803f688 (diff) | |
download | chromium_src-65e946531a3de45739107ea1e2a58a314d245f9b.zip chromium_src-65e946531a3de45739107ea1e2a58a314d245f9b.tar.gz chromium_src-65e946531a3de45739107ea1e2a58a314d245f9b.tar.bz2 |
Fix for DCHECK failure at startup of gin_shell.
It was introduced by rewriting code to use SingeThreadTaskRunner
instead of MessageLoopProxy.
Reproduces with gin_unittests too.
BUG=
Review URL: https://codereview.chromium.org/1153473009
Cr-Commit-Position: refs/heads/master@{#332597}
-rw-r--r-- | gin/shell/gin_main.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gin/shell/gin_main.cc b/gin/shell/gin_main.cc index 62143c9..ceb4d64 100644 --- a/gin/shell/gin_main.cc +++ b/gin/shell/gin_main.cc @@ -64,11 +64,12 @@ int main(int argc, char** argv) { gin::V8Initializer::LoadV8Snapshot(); #endif + base::MessageLoop message_loop; + gin::IsolateHolder::Initialize(gin::IsolateHolder::kStrictMode, gin::ArrayBufferAllocator::SharedInstance()); gin::IsolateHolder instance; - base::MessageLoop message_loop; gin::GinShellRunnerDelegate delegate; gin::ShellRunner runner(&delegate, instance.isolate()); |