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

Unified Diff: chrome/browser/notifications/notification_ui_manager.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/notification_ui_manager.cc
diff --git a/chrome/browser/notifications/notification_ui_manager.cc b/chrome/browser/notifications/notification_ui_manager.cc
index 56c90f2dad1eab018b906f2c67a7cd562bec747d..8a46c1ecf2c3b1877a7541c58c0b64364928cc96 100644
--- a/chrome/browser/notifications/notification_ui_manager.cc
+++ b/chrome/browser/notifications/notification_ui_manager.cc
@@ -67,7 +67,12 @@ NotificationUIManager::~NotificationUIManager() {
// static
NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) {
- BalloonCollection* balloons = BalloonCollection::Create();
+ return Create(local_state, BalloonCollection::Create());
+}
+
+// static
+NotificationUIManager* NotificationUIManager::Create(
+ PrefService* local_state, BalloonCollection* balloons) {
John Gregg 2011/06/06 17:12:27 nit: i think the style preference here is one per
Satish 2011/06/06 20:36:43 Done.
NotificationUIManager* instance = new NotificationUIManager(local_state);
instance->Initialize(balloons);
balloons->set_space_change_listener(instance);

Powered by Google App Engine
This is Rietveld 408576698