| 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 eae219d3e755c717c5dac8aab6d2afa06a6733c2..5109d34993469ba11a5b8a2c8a8d386b1e1e6939 100644
|
| --- a/chrome/browser/notifications/notification_ui_manager.cc
|
| +++ b/chrome/browser/notifications/notification_ui_manager.cc
|
| @@ -13,8 +13,17 @@
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "ui/message_center/message_center_util.h"
|
|
|
| +#if defined(OS_ANDROID)
|
| +#include "chrome/browser/notifications/notification_ui_manager_android.h"
|
| +#endif
|
| +
|
| // static
|
| NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) {
|
| +#if defined(OS_ANDROID)
|
| + // Chrome for Android defers to the Android framework for displaying
|
| + // notifications, and thus doesn't use the message center.
|
| + return new NotificationUIManagerAndroid();
|
| +#else
|
| ProfileInfoCache* profile_info_cache =
|
| &g_browser_process->profile_manager()->GetProfileInfoCache();
|
| scoped_ptr<message_center::NotifierSettingsProvider> settings_provider(
|
| @@ -23,4 +32,5 @@ NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) {
|
| g_browser_process->message_center(),
|
| local_state,
|
| settings_provider.Pass());
|
| +#endif
|
| }
|
|
|