From 7211f74d2f66c46507e235b39245f736420e68d1 Mon Sep 17 00:00:00 2001 From: "torne@chromium.org" Date: Tue, 12 Apr 2011 18:48:17 +0000 Subject: Profile shouldn't own DesktopNotificationService. DesktopNotificationService is now owned by DesktopNotificationServiceFactory, using Profile as a key. This uses the ProfileKeyedService infrastructure originally created for ThemeServiceFactory. BUG=77155 TEST=existing tests Review URL: http://codereview.chromium.org/6803012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81277 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chromeos/notifications/balloon_view.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/browser/chromeos/notifications/balloon_view.cc') diff --git a/chrome/browser/chromeos/notifications/balloon_view.cc b/chrome/browser/chromeos/notifications/balloon_view.cc index cac419a..6246e51 100644 --- a/chrome/browser/chromeos/notifications/balloon_view.cc +++ b/chrome/browser/chromeos/notifications/balloon_view.cc @@ -12,6 +12,7 @@ #include "chrome/browser/chromeos/notifications/notification_panel.h" #include "chrome/browser/notifications/balloon.h" #include "chrome/browser/notifications/desktop_notification_service.h" +#include "chrome/browser/notifications/desktop_notification_service_factory.h" #include "chrome/browser/notifications/notification.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/ui/views/notifications/balloon_view_host.h" @@ -338,7 +339,7 @@ void BalloonViewImpl::DelayedClose(bool by_user) { void BalloonViewImpl::DenyPermission() { DesktopNotificationService* service = - balloon_->profile()->GetDesktopNotificationService(); + DesktopNotificationServiceFactory::GetForProfile(balloon_->profile()); service->DenyPermission(balloon_->notification().origin_url()); } -- cgit v1.1