Chromium Code Reviews| 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..f03cb03585c22eb3c3dcfa2ba790b85cc228644b 100644 |
| --- a/chrome/browser/notifications/desktop_notification_service.cc |
| +++ b/chrome/browser/notifications/desktop_notification_service.cc |
| @@ -591,3 +591,7 @@ void DesktopNotificationService::NotifySettingsChange() { |
| Source<DesktopNotificationService>(this), |
| NotificationService::NoDetails()); |
| } |
| + |
| +int DesktopNotificationService::HasPermission(const GURL& origin) { |
| + return prefs_cache()->HasPermission(origin.GetOrigin()); |
|
John Gregg
2011/06/06 17:12:27
In what context is this function called? See the
Satish
2011/06/06 20:36:43
This should be called from the IO thread alone, ad
|
| +} |