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

Side by Side Diff: chrome/browser/notifications/notification_ui_manager.cc

Issue 10021026: [Mac] Implement a NotificationUIManager that uses Notification Center on 10.8 for text notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698