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

Unified Diff: LayoutTests/http/tests/push_messaging/resources/instrumentation-service-worker.js

Issue 1083193006: Rename hasPermission to permissionState. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: re-add hasPermission to the expectations file Created 5 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: LayoutTests/http/tests/push_messaging/resources/instrumentation-service-worker.js
diff --git a/LayoutTests/http/tests/push_messaging/resources/instrumentation-service-worker.js b/LayoutTests/http/tests/push_messaging/resources/instrumentation-service-worker.js
index e17fd7f621d01fd9eba85b3d14113dc66d524b31..c6f5fbc1168b7d24e687c2ce8a5c92f5a826fb6a 100644
--- a/LayoutTests/http/tests/push_messaging/resources/instrumentation-service-worker.js
+++ b/LayoutTests/http/tests/push_messaging/resources/instrumentation-service-worker.js
@@ -15,8 +15,8 @@ self.addEventListener('message', function(workerEvent) {
return;
switch (event.data.command) {
- case 'hasPermission':
- self.registration.pushManager.hasPermission().then(function(permissionStatus) {
+ case 'permissionState':
+ self.registration.pushManager.permissionState().then(function(permissionStatus) {
port.postMessage({ command: event.data.command,
success: true,
permission: permissionStatus });

Powered by Google App Engine
This is Rietveld 408576698