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

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

Issue 7053041: Add a Create method to DesktopNotificationHandler and stubs for the notification objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 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/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();
}

Powered by Google App Engine
This is Rietveld 408576698