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

Unified Diff: chrome/renderer/notification_provider.cc

Issue 271052: Browser side support (sans UI) for desktop notifications.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 2 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
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/test/testing_profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/notification_provider.cc
===================================================================
--- chrome/renderer/notification_provider.cc (revision 28695)
+++ chrome/renderer/notification_provider.cc (working copy)
@@ -47,8 +47,8 @@
WebNotificationPresenter::Permission NotificationProvider::checkPermission(
const WebString& origin) {
int permission;
- Send(new ViewHostMsg_CheckNotificationPermission(view_->routing_id(), origin,
- &permission));
+ Send(new ViewHostMsg_CheckNotificationPermission(view_->routing_id(),
+ GURL(origin), &permission));
return static_cast<WebNotificationPresenter::Permission>(permission);
}
@@ -57,7 +57,7 @@
int id = manager_.RegisterPermissionRequest(callback);
Send(new ViewHostMsg_RequestNotificationPermission(view_->routing_id(),
- origin, id));
+ GURL(origin), id));
}
bool NotificationProvider::ShowHTML(const WebNotification& notification,
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/test/testing_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698