Index: chrome/browser/notifications/balloon_notification_ui_manager.cc |
diff --git a/chrome/browser/notifications/balloon_notification_ui_manager.cc b/chrome/browser/notifications/balloon_notification_ui_manager.cc |
index 7fce9dba8354f64f21ffcd70eb09201776c69418..5e4ad15427b382b8bcfb21816482f1afcdff4916 100644 |
--- a/chrome/browser/notifications/balloon_notification_ui_manager.cc |
+++ b/chrome/browser/notifications/balloon_notification_ui_manager.cc |
@@ -91,7 +91,7 @@ void BalloonNotificationUIManager::OnBalloonSpaceChanged() { |
} |
bool BalloonNotificationUIManager::UpdateNotification( |
- const Notification& notification) { |
+ const Notification& notification, Profile* profile) { |
const GURL& origin = notification.origin_url(); |
const string16& replace_id = notification.replace_id(); |
@@ -101,7 +101,8 @@ bool BalloonNotificationUIManager::UpdateNotification( |
balloon_collection_->GetActiveBalloons(); |
for (BalloonCollection::Balloons::const_iterator iter = balloons.begin(); |
iter != balloons.end(); ++iter) { |
- if (origin == (*iter)->notification().origin_url() && |
+ if (profile == (*iter)->profile() && |
+ origin == (*iter)->notification().origin_url() && |
replace_id == (*iter)->notification().replace_id()) { |
(*iter)->Update(notification); |
return true; |