| Index: chrome/browser/notifications/notification_ui_manager_desktop.cc
|
| diff --git a/chrome/browser/notifications/notification_ui_manager_desktop.cc b/chrome/browser/notifications/notification_ui_manager_desktop.cc
|
| index bca1303a55150c920b9deb3e87966c18fc778f62..90c2c740276b03ac5cce2dd1f3e5969607e844ab 100644
|
| --- a/chrome/browser/notifications/notification_ui_manager_desktop.cc
|
| +++ b/chrome/browser/notifications/notification_ui_manager_desktop.cc
|
| @@ -14,8 +14,12 @@
|
|
|
| // static
|
| NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) {
|
| + ProfileManager* profile_manager = g_browser_process->profile_manager();
|
| + if (!profile_manager)
|
| + return nullptr;
|
| +
|
| ProfileInfoCache* profile_info_cache =
|
| - &g_browser_process->profile_manager()->GetProfileInfoCache();
|
| + &profile_manager->GetProfileInfoCache();
|
| scoped_ptr<message_center::NotifierSettingsProvider> settings_provider(
|
| new MessageCenterSettingsController(profile_info_cache));
|
| return new MessageCenterNotificationManager(
|
|
|