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

Unified Diff: extensions/renderer/module_system_test.cc

Issue 831423005: Split out the extensions gin::Runner implementation into a separate class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « extensions/extensions.gyp ('k') | extensions/renderer/script_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/module_system_test.cc
diff --git a/extensions/renderer/module_system_test.cc b/extensions/renderer/module_system_test.cc
index fb197fce2f7ef7254afadd3f3220101940005e03..b9d4a4d8f3a31e36ee89e803755a34f75d3a5e03 100644
--- a/extensions/renderer/module_system_test.cc
+++ b/extensions/renderer/module_system_test.cc
@@ -156,7 +156,7 @@ ModuleSystemTestEnvironment::ModuleSystemTestEnvironment(v8::Isolate* isolate)
}
ModuleSystemTestEnvironment::~ModuleSystemTestEnvironment() {
- if (context_)
+ if (context_->is_valid())
context_->v8_context()->Exit();
}
@@ -197,7 +197,7 @@ void ModuleSystemTestEnvironment::ShutdownGin() {
void ModuleSystemTestEnvironment::ShutdownModuleSystem() {
context_->v8_context()->Exit();
- context_.reset();
+ context_->Invalidate();
}
v8::Handle<v8::Object> ModuleSystemTestEnvironment::CreateGlobal(
« no previous file with comments | « extensions/extensions.gyp ('k') | extensions/renderer/script_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698