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

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

Issue 231213003: notification balloons: Remove views and cocoa implementations of BalloonCollection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/notifications/notification_ui_manager.h" 5 #include "chrome/browser/notifications/notification_ui_manager.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/notifications/message_center_notification_manager.h" 9 #include "chrome/browser/notifications/message_center_notification_manager.h"
10 #include "chrome/browser/notifications/message_center_settings_controller.h" 10 #include "chrome/browser/notifications/message_center_settings_controller.h"
(...skipping 23 matching lines...) Expand all
34 ProfileInfoCache* profile_info_cache = 34 ProfileInfoCache* profile_info_cache =
35 &g_browser_process->profile_manager()->GetProfileInfoCache(); 35 &g_browser_process->profile_manager()->GetProfileInfoCache();
36 scoped_ptr<message_center::NotifierSettingsProvider> settings_provider( 36 scoped_ptr<message_center::NotifierSettingsProvider> settings_provider(
37 new MessageCenterSettingsController(profile_info_cache)); 37 new MessageCenterSettingsController(profile_info_cache));
38 return new MessageCenterNotificationManager( 38 return new MessageCenterNotificationManager(
39 g_browser_process->message_center(), 39 g_browser_process->message_center(),
40 local_state, 40 local_state,
41 settings_provider.Pass()); 41 settings_provider.Pass());
42 } 42 }
43 43
44 #if defined(OS_CHROMEOS) 44 #if defined(TOOLKIT_GTK)
45 // Since we can't reach here for CrOS (see above), no point compiling all
46 // the dependent classes there.
47 CHECK(false);
48 return NULL;
49 #elif defined(OS_MACOSX) || defined(USE_AURA)
50 // IsRichNotificationEnabled() always returns true in this case.
51 CHECK(false);
52 return NULL;
53 #else
54 BalloonNotificationUIManager* balloon_manager = 45 BalloonNotificationUIManager* balloon_manager =
55 new BalloonNotificationUIManager(local_state); 46 new BalloonNotificationUIManager(local_state);
56 balloon_manager->SetBalloonCollection(BalloonCollection::Create()); 47 balloon_manager->SetBalloonCollection(BalloonCollection::Create());
57 return balloon_manager; 48 return balloon_manager;
49 #else
50 CHECK(false);
51 return NULL;
58 #endif 52 #endif
59 } 53 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/balloon_collection_impl.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698