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

Unified Diff: chrome/browser/notifications/balloon_notification_ui_manager.cc

Issue 11958025: Start delegating notifications to MessageCenter on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added USE_ASH guard to test code as well Created 7 years, 11 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/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) {
sky 2013/01/22 19:29:00 When you wrap each arg on its own line.
Dmitry Titov 2013/01/22 21:01:07 Done.
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;

Powered by Google App Engine
This is Rietveld 408576698