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

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

Issue 1127013008: Beginnings of synchronizing notifications in the notification database. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 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 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(

Powered by Google App Engine
This is Rietveld 408576698