| Index: chrome/browser/desktop_notification_handler.cc
|
| diff --git a/chrome/browser/desktop_notification_handler.cc b/chrome/browser/desktop_notification_handler.cc
|
| index 8d56e2272286aedd61ac806d25459ee99c778bd3..d55323f437b40bf3d7cc578aad253d530f7eb9da 100644
|
| --- a/chrome/browser/desktop_notification_handler.cc
|
| +++ b/chrome/browser/desktop_notification_handler.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/desktop_notification_handler.h"
|
|
|
| #include "chrome/browser/notifications/desktop_notification_service.h"
|
| +#include "chrome/browser/notifications/desktop_notification_service_factory.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| #include "content/browser/renderer_host/render_process_host.h"
|
| @@ -37,7 +38,7 @@ void DesktopNotificationHandler::OnShow(
|
| const DesktopNotificationHostMsg_Show_Params& params) {
|
| RenderProcessHost* process = GetRenderProcessHost();
|
| DesktopNotificationService* service =
|
| - process->profile()->GetDesktopNotificationService();
|
| + DesktopNotificationServiceFactory::GetForProfile(process->profile());
|
|
|
| service->ShowDesktopNotification(
|
| params,
|
| @@ -50,7 +51,7 @@ void DesktopNotificationHandler::OnCancel(const IPC::Message& message,
|
| int notification_id) {
|
| RenderProcessHost* process = GetRenderProcessHost();
|
| DesktopNotificationService* service =
|
| - process->profile()->GetDesktopNotificationService();
|
| + DesktopNotificationServiceFactory::GetForProfile(process->profile());
|
|
|
| service->CancelDesktopNotification(
|
| process->id(),
|
| @@ -71,7 +72,7 @@ void DesktopNotificationHandler::OnRequestPermission(
|
| return;
|
|
|
| DesktopNotificationService* service =
|
| - tab->profile()->GetDesktopNotificationService();
|
| + DesktopNotificationServiceFactory::GetForProfile(tab->profile());
|
| service->RequestPermission(
|
| source_origin,
|
| process->id(),
|
|
|