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 623a5870d17218fbc0e12acaceb21a4ff0880560..1c10a102f6efab89fd5726c9b3511b2740b9591c 100644 |
--- a/chrome/browser/notifications/notification_ui_manager_desktop.cc |
+++ b/chrome/browser/notifications/notification_ui_manager_desktop.cc |
@@ -18,6 +18,8 @@ NotificationUIManager* NotificationUIManager::Create() { |
ProfileManager* profile_manager = g_browser_process->profile_manager(); |
if (!profile_manager) |
return nullptr; |
+ if (!g_browser_process->message_center()) |
+ return nullptr; |
std::unique_ptr<message_center::NotifierSettingsProvider> settings_provider( |
new MessageCenterSettingsController( |