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

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..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());
+}

Powered by Google App Engine
This is Rietveld 408576698