diff options
author | kalman <kalman@chromium.org> | 2014-11-06 15:55:35 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-06 23:56:46 +0000 |
commit | fb6f10ac2bc61c43c1cd6d753818719d95e73c54 (patch) | |
tree | 6e08679d5cdf367038a9ece25126baea19d13ed3 /extensions/renderer/messaging_bindings.cc | |
parent | 2f8c0b4bdc22b28cdbea1b2bb7e76514283c5d42 (diff) | |
download | chromium_src-fb6f10ac2bc61c43c1cd6d753818719d95e73c54.zip chromium_src-fb6f10ac2bc61c43c1cd6d753818719d95e73c54.tar.gz chromium_src-fb6f10ac2bc61c43c1cd6d753818719d95e73c54.tar.bz2 |
Use the v8::Isolate we know about rather than v8::Isolate::GetCurrent() in a
few places in the extensions code.
BUG=359442
R=adamk@chromium.org
Review URL: https://codereview.chromium.org/703173003
Cr-Commit-Position: refs/heads/master@{#303127}
Diffstat (limited to 'extensions/renderer/messaging_bindings.cc')
-rw-r--r-- | extensions/renderer/messaging_bindings.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/renderer/messaging_bindings.cc b/extensions/renderer/messaging_bindings.cc index cbb9ec2..e7014fa 100644 --- a/extensions/renderer/messaging_bindings.cc +++ b/extensions/renderer/messaging_bindings.cc @@ -316,7 +316,7 @@ void DispatchOnConnectToScriptContext( void DeliverMessageToScriptContext(const std::string& message_data, int target_port_id, ScriptContext* script_context) { - v8::Isolate* isolate = v8::Isolate::GetCurrent(); + v8::Isolate* isolate = script_context->isolate(); v8::HandleScope handle_scope(isolate); // Check to see whether the context has this port before bothering to create |