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/notification_ui_manager_impl.h" | |
8 | |
9 // static | |
10 NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) { | |
11 return Create(local_state, BalloonCollection::Create()); | |
jianli
2012/04/10 00:54:14
nit: seems that we need to include balloon_collect
Robert Sesek
2012/04/12 17:48:47
Done.
| |
12 } | |
13 | |
14 #if !defined(OS_MACOSX) | |
15 // static | |
16 NotificationUIManager* NotificationUIManager::Create( | |
17 PrefService* local_state, | |
18 BalloonCollection* balloons) { | |
19 NotificationUIManagerImpl* instance = | |
20 new NotificationUIManagerImpl(local_state); | |
21 instance->Initialize(balloons); | |
22 balloons->set_space_change_listener(instance); | |
23 return instance; | |
24 } | |
25 #endif // !OS_MACOSX | |
OLD | NEW |