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

Unified Diff: chrome/browser/notifications/notification_ui_manager_desktop.cc

Issue 2528013002: Initialize the message center as part of the testing browser process (Closed)
Patch Set: re-uploding due to time outs Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698