Index: chrome/renderer/extensions/app_bindings.cc |
diff --git a/chrome/renderer/extensions/app_bindings.cc b/chrome/renderer/extensions/app_bindings.cc |
index 5f0ddb70b027259845e5e2fb8109f50716d85da3..087fb4eddf2e46312e1f544e865700000840f518 100644 |
--- a/chrome/renderer/extensions/app_bindings.cc |
+++ b/chrome/renderer/extensions/app_bindings.cc |
@@ -213,11 +213,12 @@ bool AppBindings::OnMessageReceived(const IPC::Message& message) { |
void AppBindings::OnAppInstallStateResponse( |
const std::string& state, int callback_id) { |
- v8::HandleScope handle_scope(context()->isolate()); |
+ v8::Isolate* isolate = context()->isolate(); |
+ v8::HandleScope handle_scope(isolate); |
v8::Context::Scope context_scope(context()->v8_context()); |
v8::Handle<v8::Value> argv[] = { |
- v8::String::NewFromUtf8(context()->isolate(), state.c_str()), |
- v8::Integer::New(callback_id) |
+ v8::String::NewFromUtf8(isolate, state.c_str()), |
+ v8::Integer::New(isolate, callback_id) |
}; |
context()->module_system()->CallModuleMethod( |
"app", "onInstallStateResponse", arraysize(argv), argv); |