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

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

Issue 1657913003: Refactor of ProfileInfoCache in c/b/notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix errors Created 4 years, 10 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 c03f4be8313246ffccc3242aa127b3143ed93f50..7de03bb53d8361c5a41735b617d5b224e4a34291 100644
--- a/chrome/browser/notifications/notification_ui_manager_desktop.cc
+++ b/chrome/browser/notifications/notification_ui_manager_desktop.cc
@@ -11,7 +11,6 @@
#include "chrome/browser/notifications/message_center_notification_manager.h"
#include "chrome/browser/notifications/message_center_settings_controller.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/profiles/profile_manager.h"
// static
@@ -20,10 +19,9 @@ NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) {
if (!profile_manager)
return nullptr;
- ProfileInfoCache* profile_info_cache =
- &profile_manager->GetProfileInfoCache();
scoped_ptr<message_center::NotifierSettingsProvider> settings_provider(
- new MessageCenterSettingsController(profile_info_cache));
+ new MessageCenterSettingsController(
+ profile_manager->GetProfileAttributesStorage()));
return new MessageCenterNotificationManager(
g_browser_process->message_center(),
std::move(settings_provider));

Powered by Google App Engine
This is Rietveld 408576698