| Index: content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| diff --git a/content/renderer/browser_plugin/browser_plugin_browsertest.cc b/content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| index 693752c618a9be543508275c936d72d9f85a76f4..d12b45bdfc266f2dd64774557ec43f7cf9968175 100644
|
| --- a/content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| +++ b/content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| @@ -112,7 +112,7 @@ void BrowserPluginTest::TearDown() {
|
|
|
| std::string BrowserPluginTest::ExecuteScriptAndReturnString(
|
| const std::string& script) {
|
| - v8::HandleScope handle_scope;
|
| + v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
|
| v8::Handle<v8::Value> value = GetMainFrame()->executeScriptAndReturnValue(
|
| WebKit::WebScriptSource(WebKit::WebString::fromUTF8(script.c_str())));
|
| if (value.IsEmpty() || !value->IsString())
|
| @@ -127,7 +127,7 @@ std::string BrowserPluginTest::ExecuteScriptAndReturnString(
|
|
|
| int BrowserPluginTest::ExecuteScriptAndReturnInt(
|
| const std::string& script) {
|
| - v8::HandleScope handle_scope;
|
| + v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
|
| v8::Handle<v8::Value> value = GetMainFrame()->executeScriptAndReturnValue(
|
| WebKit::WebScriptSource(WebKit::WebString::fromUTF8(script.c_str())));
|
| if (value.IsEmpty() || !value->IsInt32())
|
| @@ -140,7 +140,7 @@ int BrowserPluginTest::ExecuteScriptAndReturnInt(
|
| // of the script is stored in |result|
|
| bool BrowserPluginTest::ExecuteScriptAndReturnBool(
|
| const std::string& script, bool* result) {
|
| - v8::HandleScope handle_scope;
|
| + v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
|
| v8::Handle<v8::Value> value = GetMainFrame()->executeScriptAndReturnValue(
|
| WebKit::WebScriptSource(WebKit::WebString::fromUTF8(script.c_str())));
|
| if (value.IsEmpty() || !value->IsBoolean())
|
|
|