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

Unified Diff: ppapi/cpp/instance.cc

Issue 9519001: Remove assertion on instance destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/instance.cc
diff --git a/ppapi/cpp/instance.cc b/ppapi/cpp/instance.cc
index c9b50ffda62789b0d9364e91f730eee4ec994089..f2a181ac166249b0cc5d488faf76822dcdae32da 100644
--- a/ppapi/cpp/instance.cc
+++ b/ppapi/cpp/instance.cc
@@ -42,13 +42,6 @@ Instance::Instance(PP_Instance instance) : pp_instance_(instance) {
}
Instance::~Instance() {
- // Ensure that all per-instance objects have been removed. Generally, these
- // objects should have their lifetime scoped to the instance, such as being
- // instance members or even implemented by your instance sub-class directly.
- //
- // If they're not unregistered at this point, they will usually have a
- // dangling reference to the instance, which can cause a crash later.
- PP_DCHECK(interface_name_to_objects_.empty());
}
bool Instance::Init(uint32_t /*argc*/, const char* /*argn*/[],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698