summaryrefslogtreecommitdiffstats
path: root/chrome/common/notification_registrar.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 19:15:38 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 19:15:38 +0000
commit5beb105cef4ede484df49a02cfc7984ac053b225 (patch)
treeaf1ab88e5313c7bdc75a74e3ba64a81d4d66f684 /chrome/common/notification_registrar.cc
parent802376eb9aacca5284b76da93face73a9488bdb6 (diff)
downloadchromium_src-5beb105cef4ede484df49a02cfc7984ac053b225.zip
chromium_src-5beb105cef4ede484df49a02cfc7984ac053b225.tar.gz
chromium_src-5beb105cef4ede484df49a02cfc7984ac053b225.tar.bz2
Add more logging on a NOTREACHED() in hopes of getting more data about why we're hitting it.
BUG=12684 Review URL: http://codereview.chromium.org/113958 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17094 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/notification_registrar.cc')
-rw-r--r--chrome/common/notification_registrar.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/common/notification_registrar.cc b/chrome/common/notification_registrar.cc
index ac76202..4da68ee 100644
--- a/chrome/common/notification_registrar.cc
+++ b/chrome/common/notification_registrar.cc
@@ -48,7 +48,8 @@ void NotificationRegistrar::Remove(NotificationObserver* observer,
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);