summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/notification_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/notification_provider.cc')
-rw-r--r--chrome/renderer/notification_provider.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/notification_provider.cc b/chrome/renderer/notification_provider.cc
index 6d142fe..2862e4a 100644
--- a/chrome/renderer/notification_provider.cc
+++ b/chrome/renderer/notification_provider.cc
@@ -78,7 +78,7 @@ bool NotificationProvider::ShowHTML(const WebNotification& notification,
int id) {
DCHECK(notification.isHTML());
return Send(new ViewHostMsg_ShowDesktopNotification(view_->routing_id(),
- GURL(view_->webview()->mainFrame()->url()),
+ GURL(view_->webview()->mainFrame()->url()).GetOrigin(),
notification.url(), id));
}
@@ -86,7 +86,7 @@ bool NotificationProvider::ShowText(const WebNotification& notification,
int id) {
DCHECK(!notification.isHTML());
return Send(new ViewHostMsg_ShowDesktopNotificationText(view_->routing_id(),
- GURL(view_->webview()->mainFrame()->url()),
+ GURL(view_->webview()->mainFrame()->url()).GetOrigin(),
GURL(notification.icon()),
notification.title(), notification.body(), id));
}