| Index: chrome/browser/notifications/platform_notification_service_impl.cc
|
| diff --git a/chrome/browser/notifications/platform_notification_service_impl.cc b/chrome/browser/notifications/platform_notification_service_impl.cc
|
| index 2f39c336fc21501d2cdcbdcc3c17bb3b4b927786..68d0b141f78a9e9fb778371a8f491ef6f97172db 100644
|
| --- a/chrome/browser/notifications/platform_notification_service_impl.cc
|
| +++ b/chrome/browser/notifications/platform_notification_service_impl.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/prefs/pref_service.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "chrome/browser/browser_process.h"
|
| +#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
|
| #include "chrome/browser/notifications/desktop_notification_profile_util.h"
|
| #include "chrome/browser/notifications/notification_object_proxy.h"
|
| #include "chrome/browser/notifications/notification_ui_manager.h"
|
| @@ -238,7 +239,7 @@ void PlatformNotificationServiceImpl::DisplayNotification(
|
| notification.delegate_id(),
|
| NotificationUIManager::GetProfileID(profile));
|
|
|
| - profile->GetHostContentSettingsMap()->UpdateLastUsage(
|
| + HostContentSettingsMapFactory::GetForProfile(profile)->UpdateLastUsage(
|
| origin, origin, CONTENT_SETTINGS_TYPE_NOTIFICATIONS);
|
| }
|
|
|
| @@ -265,7 +266,7 @@ void PlatformNotificationServiceImpl::DisplayPersistentNotification(
|
|
|
| GetNotificationUIManager()->Add(notification, profile);
|
|
|
| - profile->GetHostContentSettingsMap()->UpdateLastUsage(
|
| + HostContentSettingsMapFactory::GetForProfile(profile)->UpdateLastUsage(
|
| origin, origin, CONTENT_SETTINGS_TYPE_NOTIFICATIONS);
|
| }
|
|
|
|
|