Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Unified Diff: chrome/browser/notifications/desktop_notification_service.cc

Issue 7053041: Add a Create method to DesktopNotificationHandler and stubs for the notification objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
+}

Powered by Google App Engine
This is Rietveld 408576698