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

Unified Diff: chrome/browser/chromeos/notifications/notification_panel.cc

Issue 4635007: When an extension is uninstalled, close all desktop notifications from that e... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
Index: chrome/browser/chromeos/notifications/notification_panel.cc
===================================================================
--- chrome/browser/chromeos/notifications/notification_panel.cc (revision 66634)
+++ chrome/browser/chromeos/notifications/notification_panel.cc (working copy)
@@ -848,10 +848,8 @@
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);
}

Powered by Google App Engine
This is Rietveld 408576698