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/console.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/console.cc')
-rw-r--r-- | extensions/renderer/console.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/renderer/console.cc b/extensions/renderer/console.cc index ccfef75..4601f6c 100644 --- a/extensions/renderer/console.cc +++ b/extensions/renderer/console.cc @@ -173,8 +173,7 @@ void AddMessage(v8::Handle<v8::Context> context, AddMessage(render_view, level, message); } -v8::Local<v8::Object> AsV8Object() { - v8::Isolate* isolate = v8::Isolate::GetCurrent(); +v8::Local<v8::Object> AsV8Object(v8::Isolate* isolate) { v8::EscapableHandleScope handle_scope(isolate); v8::Local<v8::Object> console_object = v8::Object::New(isolate); BindLogMethod(isolate, console_object, "debug", &Debug); |