Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6138)

Unified Diff: chrome/renderer/extensions/app_window_custom_bindings.cc

Issue 23679004: Remove more calls to HandleScope default ctor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/app_window_custom_bindings.cc
diff --git a/chrome/renderer/extensions/app_window_custom_bindings.cc b/chrome/renderer/extensions/app_window_custom_bindings.cc
index 3c94d576fc0c3d3f2a6b90159b65f33000dbf52f..7bbd76f31091e5c1521b393f65c3855e59c86310 100644
--- a/chrome/renderer/extensions/app_window_custom_bindings.cc
+++ b/chrome/renderer/extensions/app_window_custom_bindings.cc
@@ -38,7 +38,7 @@ class DidCreateDocumentElementObserver : public content::RenderViewObserver {
// Don't attempt to inject the titlebar into iframes.
if (frame->parent())
return;
- v8::HandleScope handle_scope;
+ v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
ChromeV8Context* v8_context =
dispatcher_->v8_context_set().GetByV8Context(
frame->mainWorldScriptContext());

Powered by Google App Engine
This is Rietveld 408576698