| Index: chrome/browser/status_icons/desktop_notification_balloon.cc
|
| diff --git a/chrome/browser/status_icons/desktop_notification_balloon.cc b/chrome/browser/status_icons/desktop_notification_balloon.cc
|
| index 1974b649683a3cd8d4523cea2a0a61a8b58b3e4a..6bddb5bc1ec2941f4f6d7ef521e2a2b29249f50d 100644
|
| --- a/chrome/browser/status_icons/desktop_notification_balloon.cc
|
| +++ b/chrome/browser/status_icons/desktop_notification_balloon.cc
|
| @@ -79,13 +79,14 @@ void DesktopNotificationBalloon::DisplayBalloon(
|
| base::ThreadRestrictions::ScopedAllowIO allow_io;
|
| profile = ProfileManager::GetLastUsedProfile();
|
| }
|
| - notification_id_ = DesktopNotificationService::AddIconNotification(
|
| - GURL(),
|
| - title,
|
| - contents,
|
| - gfx::Image(icon),
|
| - base::string16(),
|
| - new DummyNotificationDelegate(base::IntToString(id_count_++), profile_),
|
| - profile);
|
| +
|
| + NotificationDelegate* delegate =
|
| + new DummyNotificationDelegate(base::IntToString(id_count_++), profile_);
|
| + Notification notification(GURL(), title, contents, gfx::Image(icon),
|
| + base::string16(), base::string16(), delegate);
|
| +
|
| + g_browser_process->notification_ui_manager()->Add(notification, profile);
|
| +
|
| + notification_id_ = notification.delegate_id();
|
| profile_ = profile;
|
| }
|
|
|