Index: chrome/browser/notifications/message_center_notification_manager.cc |
diff --git a/chrome/browser/notifications/message_center_notification_manager.cc b/chrome/browser/notifications/message_center_notification_manager.cc |
index 38d1995378b4291dcb3ed61b8bdee62746e38595..5d9749e789b595d55990dd9d71cbfee74c52ec0e 100644 |
--- a/chrome/browser/notifications/message_center_notification_manager.cc |
+++ b/chrome/browser/notifications/message_center_notification_manager.cc |
@@ -91,7 +91,7 @@ bool MessageCenterNotificationManager::CancelAllByProfile(Profile* profile) { |
for (NotificationMap::iterator loopiter = profile_notifications_.begin(); |
loopiter != profile_notifications_.end(); ) { |
NotificationMap::iterator curiter = loopiter++; |
- if ((*curiter).second->profile()->IsSameProfile(profile)) { |
+ if ((*curiter).second->profile() == profile) { |
// This action occurs when profile is unloaded. Closing notifications is |
// not by user, so |false|. |
RemoveProfileNotification((*curiter).second, false); |