diff options
author | jochen <jochen@chromium.org> | 2015-11-30 03:33:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-30 11:34:24 +0000 |
commit | dfd8ec1b3edb7f876235bec1138ecec4f2da748d (patch) | |
tree | e592c87091c88da1ffb34f19bdcf711b079789ba /extensions/renderer | |
parent | 47ce5feb1d13ce889da15f76f063a7978a0b5c37 (diff) | |
download | chromium_src-dfd8ec1b3edb7f876235bec1138ecec4f2da748d.zip chromium_src-dfd8ec1b3edb7f876235bec1138ecec4f2da748d.tar.gz chromium_src-dfd8ec1b3edb7f876235bec1138ecec4f2da748d.tar.bz2 |
Always pass an v8::Isolate* to the TryCatch ctor
The parameter is required, and the old API will be deleted soon.
BUG=none
R=haraken@chromium.org
TBR=rdevlin.cronin@chromium.org
Review URL: https://codereview.chromium.org/1484723002
Cr-Commit-Position: refs/heads/master@{#362118}
Diffstat (limited to 'extensions/renderer')
-rw-r--r-- | extensions/renderer/activity_log_converter_strategy.cc | 2 | ||||
-rw-r--r-- | extensions/renderer/utils_native_handler.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/renderer/activity_log_converter_strategy.cc b/extensions/renderer/activity_log_converter_strategy.cc index 3a8d612..1e32832 100644 --- a/extensions/renderer/activity_log_converter_strategy.cc +++ b/extensions/renderer/activity_log_converter_strategy.cc @@ -17,7 +17,7 @@ namespace { // "[HTMLElement]"). scoped_ptr<base::Value> SummarizeV8Value(v8::Isolate* isolate, v8::Local<v8::Object> object) { - v8::TryCatch try_catch; + v8::TryCatch try_catch(isolate); v8::Isolate::DisallowJavascriptExecutionScope scope( isolate, v8::Isolate::DisallowJavascriptExecutionScope::THROW_ON_FAILURE); v8::Local<v8::String> name = v8::String::NewFromUtf8(isolate, "["); diff --git a/extensions/renderer/utils_native_handler.cc b/extensions/renderer/utils_native_handler.cc index 49ff32a..35b39eb 100644 --- a/extensions/renderer/utils_native_handler.cc +++ b/extensions/renderer/utils_native_handler.cc @@ -73,7 +73,7 @@ void UtilsNativeHandler::CreateClassWrapper( superclass}; v8::Local<v8::Value> result; { - v8::TryCatch try_catch; + v8::TryCatch try_catch(GetIsolate()); try_catch.SetCaptureMessage(true); result = context()->CallFunction(func, arraysize(func_args), func_args); if (try_catch.HasCaught()) { |