Index: chrome/browser/notifications/desktop_notification_service_factory.cc |
diff --git a/chrome/browser/notifications/desktop_notification_service_factory.cc b/chrome/browser/notifications/desktop_notification_service_factory.cc |
index b8fe11bd548e89bc8105e9dee8a83af2e7f41d91..56d542b214bc9eaab076dcf020a1eda9935e4cf2 100644 |
--- a/chrome/browser/notifications/desktop_notification_service_factory.cc |
+++ b/chrome/browser/notifications/desktop_notification_service_factory.cc |
@@ -6,6 +6,7 @@ |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/notifications/desktop_notification_service.h" |
+#include "chrome/browser/profiles/incognito_helpers.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_dependency_manager.h" |
#include "content/public/browser/browser_thread.h" |
@@ -41,7 +42,8 @@ ProfileKeyedService* DesktopNotificationServiceFactory::BuildServiceInstanceFor( |
return service; |
} |
-bool |
-DesktopNotificationServiceFactory::ServiceHasOwnInstanceInIncognito() const { |
- return true; |
+content::BrowserContext* |
+DesktopNotificationServiceFactory::GetBrowserContextToUse( |
+ content::BrowserContext* context) const { |
+ return chrome::GetBrowserContextOwnInstanceInIncognito(context); |
} |