Index: chrome/browser/notifications/desktop_notifications_unittest.cc |
diff --git a/chrome/browser/notifications/desktop_notifications_unittest.cc b/chrome/browser/notifications/desktop_notifications_unittest.cc |
index b3d72ff4b9367fc2a297f4b17979b5188dec70a7..6e7369331e65fc081ce260bf35aa81dc1e46e344 100644 |
--- a/chrome/browser/notifications/desktop_notifications_unittest.cc |
+++ b/chrome/browser/notifications/desktop_notifications_unittest.cc |
@@ -85,9 +85,8 @@ void DesktopNotificationsTest::SetUp() { |
browser::RegisterLocalState(&local_state_); |
profile_.reset(new TestingProfile()); |
balloon_collection_ = new MockBalloonCollection(); |
- ui_manager_.reset(new NotificationUIManager(&local_state_)); |
- ui_manager_->Initialize(balloon_collection_); |
- balloon_collection_->set_space_change_listener(ui_manager_.get()); |
+ ui_manager_.reset(NotificationUIManager::Create(&local_state_, |
+ balloon_collection_)); |
service_.reset(new DesktopNotificationService(profile(), ui_manager_.get())); |
log_output_.clear(); |
} |