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

Unified Diff: extensions/renderer/module_system_test.cc

Issue 1083663004: Revert of Move the event attach/detach logic on unload from event.js to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/renderer/module_system.cc ('k') | extensions/renderer/native_handler.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 cc4cbfbaed05f09498bc5a19712092275252a215..b9d4a4d8f3a31e36ee89e803755a34f75d3a5e03 100644
--- a/extensions/renderer/module_system_test.cc
+++ b/extensions/renderer/module_system_test.cc
@@ -157,7 +157,7 @@
ModuleSystemTestEnvironment::~ModuleSystemTestEnvironment() {
if (context_->is_valid())
- ShutdownModuleSystem();
+ context_->v8_context()->Exit();
}
void ModuleSystemTestEnvironment::RegisterModule(const std::string& name,
@@ -196,7 +196,6 @@
}
void ModuleSystemTestEnvironment::ShutdownModuleSystem() {
- CHECK(context_->is_valid());
context_->v8_context()->Exit();
context_->Invalidate();
}
« no previous file with comments | « extensions/renderer/module_system.cc ('k') | extensions/renderer/native_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698