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..fa4d1a8ebe31f365550023a67305bac236b2cecc 100644 |
--- a/chrome/browser/notifications/desktop_notification_service.cc |
+++ b/chrome/browser/notifications/desktop_notification_service.cc |
@@ -591,3 +591,22 @@ void DesktopNotificationService::NotifySettingsChange() { |
Source<DesktopNotificationService>(this), |
NotificationService::NoDetails()); |
} |
+ |
+void DesktopNotificationService::ShowBalloon(GURL origin_url, |
+ GURL icon_url, |
+ const string16& title, |
+ const string16& message, |
+ NotificationDelegate* delegate, |
+ Profile* profile) { |
+ string16 content_url = CreateDataUrl(icon_url, title, message, |
+ WebKit::WebTextDirectionDefault); |
+ Notification notification(origin_url, GURL(content_url), string16(), |
+ string16(), delegate); |
+ g_browser_process->notification_ui_manager()->Add(notification, profile); |
+} |
+ |
+int DesktopNotificationService::HasPermission(Profile* profile, |
+ const GURL& origin) { |
+ return DesktopNotificationServiceFactory::GetForProfile(profile)-> |
+ prefs_cache()->HasPermission(origin.GetOrigin()); |
+} |