summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/notifications/notification_panel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/notifications/notification_panel.cc')
-rw-r--r--chrome/browser/chromeos/notifications/notification_panel.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/chromeos/notifications/notification_panel.cc b/chrome/browser/chromeos/notifications/notification_panel.cc
index 1ff6014..6ab3b31 100644
--- a/chrome/browser/chromeos/notifications/notification_panel.cc
+++ b/chrome/browser/chromeos/notifications/notification_panel.cc
@@ -848,10 +848,8 @@ PanelController* NotificationPanelTester::GetPanelController() const {
BalloonViewImpl* NotificationPanelTester::GetBalloonView(
BalloonCollectionImpl* collection,
const Notification& notification) {
- BalloonCollectionImpl::Balloons::iterator iter =
- collection->FindBalloon(notification);
- DCHECK(iter != collection->balloons_.end());
- Balloon* balloon = (*iter);
+ Balloon* balloon = collection->FindBalloon(notification);
+ DCHECK(balloon);
return GetBalloonViewOf(balloon);
}