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

Unified Diff: chrome/renderer/extensions/content_watcher.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/content_watcher.cc
diff --git a/chrome/renderer/extensions/content_watcher.cc b/chrome/renderer/extensions/content_watcher.cc
index f4e5fff3ff0a790d72c562c3aaf451cac6eeb1db..b52a083df8610d1ec2036597bbd9c31e1b65ac50 100644
--- a/chrome/renderer/extensions/content_watcher.cc
+++ b/chrome/renderer/extensions/content_watcher.cc
@@ -98,7 +98,7 @@ void ContentWatcher::DidCreateDocumentElement(WebKit::WebFrame* frame) {
}
void ContentWatcher::EnsureWatchingMutations(WebKit::WebFrame* frame) {
- v8::HandleScope scope;
+ v8::HandleScope scope(v8::Isolate::GetCurrent());
v8::Context::Scope context_scope(frame->mainWorldScriptContext());
if (ModuleSystem* module_system = GetModuleSystem(frame)) {
ModuleSystem::NativesEnabledScope scope(module_system);

Powered by Google App Engine
This is Rietveld 408576698