summaryrefslogtreecommitdiffstats
path: root/chrome/common/notification_service.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-22 00:58:58 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-22 00:58:58 +0000
commit11c2688a90c8626c77e4855d601d9e7b180e51fc (patch)
tree81966be2fe14d4a6a489c81029a03a66534ea5e4 /chrome/common/notification_service.cc
parent5dc6e5c358d5ee756e7fdac33cd257e7b17d94e3 (diff)
downloadchromium_src-11c2688a90c8626c77e4855d601d9e7b180e51fc.zip
chromium_src-11c2688a90c8626c77e4855d601d9e7b180e51fc.tar.gz
chromium_src-11c2688a90c8626c77e4855d601d9e7b180e51fc.tar.bz2
Convert LOG(INFO) to VLOG(1) - chrome/common/.
This also removes LOG_RESOURCE_REQUESTS and all associated code. Also remove some "using"s, fix non-const ref (style violation), remove some "else" after "return", and remove some extra {}s. BUG=none TEST=none Review URL: http://codereview.chromium.org/3941001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63462 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/notification_service.cc')
-rw-r--r--chrome/common/notification_service.cc13
1 files changed, 4 insertions, 9 deletions
diff --git a/chrome/common/notification_service.cc b/chrome/common/notification_service.cc
index f04f554..b3c2768 100644
--- a/chrome/common/notification_service.cc
+++ b/chrome/common/notification_service.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -132,12 +132,8 @@ NotificationService::~NotificationService() {
if (observer_counts_[i] > 0) {
// This may not be completely fixable -- see
// http://code.google.com/p/chromium/issues/detail?id=11010 .
-
- // It would be nice to track new leaks, but this currently
- // spams the console too much to be useful, making it hard to track
- // down other problems.
- // LOG(INFO) << observer_counts_[i] << " notification observer(s) leaked"
- // << " of notification type " << i;
+ VLOG(1) << observer_counts_[i] << " notification observer(s) leaked "
+ " of notification type " << i;
}
}
#endif
@@ -145,9 +141,8 @@ NotificationService::~NotificationService() {
for (int i = 0; i < NotificationType::NOTIFICATION_TYPE_COUNT; i++) {
NotificationSourceMap omap = observers_[i];
for (NotificationSourceMap::iterator it = omap.begin();
- it != omap.end(); ++it) {
+ it != omap.end(); ++it)
delete it->second;
- }
}
}