 Chromium Code Reviews
 Chromium Code Reviews Issue 1701313002:
  Partial implementation of subscription restrictions.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1701313002:
  Partial implementation of subscription restrictions.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| Index: third_party/WebKit/Source/modules/push_messaging/PushManager.cpp | 
| diff --git a/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp b/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp | 
| index 0f5a2ffd66ddd641444c5580ef3b4c3273ccc98d..9b0fc3f2e5de5807d59ce1cea47a457f715bb042 100644 | 
| --- a/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp | 
| +++ b/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp | 
| @@ -38,6 +38,8 @@ WebPushSubscriptionOptions toWebPushSubscriptionOptions(const PushSubscriptionOp | 
| { | 
| WebPushSubscriptionOptions webOptions; | 
| webOptions.userVisibleOnly = options.userVisibleOnly(); | 
| + if (options.hasAppServicePublicKey() && options.appServicePublicKey()) | 
| + webOptions.applicationServerKey = WTF::String(static_cast<const char*>(options.appServicePublicKey()->data())); | 
| 
Peter Beverloo
2016/02/17 16:15:36
This isn't safe because the |applicationServerKey|
 
harkness
2016/02/18 10:45:15
Done.
 | 
| return webOptions; | 
| } |