OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 6 |
| 7 #include "chrome/browser/notifications/balloon_collection.h" |
| 8 #include "chrome/browser/notifications/notification_ui_manager_impl.h" |
| 9 |
| 10 // static |
| 11 NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) { |
| 12 return Create(local_state, BalloonCollection::Create()); |
| 13 } |
| 14 |
| 15 #if !defined(OS_MACOSX) |
| 16 // static |
| 17 NotificationUIManager* NotificationUIManager::Create( |
| 18 PrefService* local_state, |
| 19 BalloonCollection* balloons) { |
| 20 NotificationUIManagerImpl* instance = |
| 21 new NotificationUIManagerImpl(local_state); |
| 22 instance->Initialize(balloons); |
| 23 balloons->set_space_change_listener(instance); |
| 24 return instance; |
| 25 } |
| 26 #endif // !OS_MACOSX |
OLD | NEW |