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

Unified Diff: chrome/common/notification_registrar.cc

Issue 113958: Add more logging on a NOTREACHED() in hopes of getting more data about why we... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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: chrome/common/notification_registrar.cc
===================================================================
--- chrome/common/notification_registrar.cc (revision 17014)
+++ chrome/common/notification_registrar.cc (working copy)
@@ -48,7 +48,8 @@
RecordVector::iterator found = std::find(
registered_.begin(), registered_.end(), record);
if (found == registered_.end()) {
- NOTREACHED();
+ NOTREACHED() << "Trying to remove unregistered observer of type " <<
+ type.value << " from list of size " << registered_.size() << ".";
return;
}
registered_.erase(found);
« 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