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

Unified Diff: chrome/browser/notifications/message_center_notification_manager.h

Issue 14205012: Fixes possible crashes for ProfileNotification is not found. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
Index: chrome/browser/notifications/message_center_notification_manager.h
diff --git a/chrome/browser/notifications/message_center_notification_manager.h b/chrome/browser/notifications/message_center_notification_manager.h
index 8c866386b02e13f95b715f2ad9e5a5f46a35ae07..71d456c018abd1d4c666d5e87e793b335e93fc84 100644
--- a/chrome/browser/notifications/message_center_notification_manager.h
+++ b/chrome/browser/notifications/message_center_notification_manager.h
@@ -143,6 +143,8 @@ class MessageCenterNotificationManager
void RemoveProfileNotification(ProfileNotification* profile_notification,
bool by_user);
+ // Returns the ProfileNotification for the |id|, or NULL if no such
+ // notification is found.
ProfileNotification* FindProfileNotification(const std::string& id) const;
DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager);

Powered by Google App Engine
This is Rietveld 408576698