Index: chrome/browser/notifications/desktop_notification_service.cc |
diff --git a/chrome/browser/notifications/desktop_notification_service.cc b/chrome/browser/notifications/desktop_notification_service.cc |
index 205afb617c293a044ef06e7aabddbd26d1bf439e..06e3775491f3febaa790b12438a14019f0d0a5b9 100644 |
--- a/chrome/browser/notifications/desktop_notification_service.cc |
+++ b/chrome/browser/notifications/desktop_notification_service.cc |
@@ -591,3 +591,8 @@ void DesktopNotificationService::NotifySettingsChange() { |
Source<DesktopNotificationService>(this), |
NotificationService::NoDetails()); |
} |
+ |
+int DesktopNotificationService::HasPermission(const GURL& origin) { |
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ return prefs_cache()->HasPermission(origin.GetOrigin()); |
+} |