Index: content/renderer/push_messaging/push_messaging_dispatcher.cc |
diff --git a/content/renderer/push_messaging/push_messaging_dispatcher.cc b/content/renderer/push_messaging/push_messaging_dispatcher.cc |
index 46f0687700238a6280a6a7265206cd72eaf80f76..75e6e1032db9f778ff7ec922dd1dc85b90415a3b 100644 |
--- a/content/renderer/push_messaging/push_messaging_dispatcher.cc |
+++ b/content/renderer/push_messaging/push_messaging_dispatcher.cc |
@@ -115,14 +115,16 @@ void PushMessagingDispatcher::DoSubscribe( |
void PushMessagingDispatcher::OnSubscribeFromDocumentSuccess( |
int32_t request_id, |
const GURL& endpoint, |
+ const PushSubscriptionOptions& options, |
const std::vector<uint8_t>& p256dh, |
const std::vector<uint8_t>& auth) { |
blink::WebPushSubscriptionCallbacks* callbacks = |
subscription_callbacks_.Lookup(request_id); |
DCHECK(callbacks); |
- callbacks->onSuccess( |
- base::WrapUnique(new blink::WebPushSubscription(endpoint, p256dh, auth))); |
+ callbacks->onSuccess(base::WrapUnique(new blink::WebPushSubscription( |
+ endpoint, options.user_visible_only, |
+ blink::WebString::fromLatin1(options.sender_info), p256dh, auth))); |
subscription_callbacks_.Remove(request_id); |
} |