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

Unified Diff: third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: remove unused checks Created 3 years, 8 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
Index: third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp
diff --git a/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp b/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp
index 8059999da762797ba2bc5826fb9134df30361dc2..abb5ba5243b0d481e99c81d755ecc0ac6b4fb03b 100644
--- a/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp
+++ b/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp
@@ -31,9 +31,11 @@ String bufferSourceToString(
length = applicationServerKey.getAsArrayBuffer()->byteLength();
} else if (applicationServerKey.isArrayBufferView()) {
input = static_cast<unsigned char*>(
- applicationServerKey.getAsArrayBufferView()->buffer()->data());
- length =
- applicationServerKey.getAsArrayBufferView()->buffer()->byteLength();
+ applicationServerKey.getAsArrayBufferView().view()->buffer()->data());
+ length = applicationServerKey.getAsArrayBufferView()
+ .view()
+ ->buffer()
+ ->byteLength();
} else {
NOTREACHED();
return String();

Powered by Google App Engine
This is Rietveld 408576698