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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/resources/permissions-helper.js

Issue 2458453002: [sensors] Add Permission guard to the generic sensor apis.
Patch Set: rebase + blink reformat 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/LayoutTests/http/tests/resources/permissions-helper.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/resources/permissions-helper.js b/third_party/WebKit/LayoutTests/http/tests/resources/permissions-helper.js
index f3bc68eebce882361fcf0fb769a1591adeec3399..e64176f2d4046102b7d4090a07fdacec1e5f2b27 100644
--- a/third_party/WebKit/LayoutTests/http/tests/resources/permissions-helper.js
+++ b/third_party/WebKit/LayoutTests/http/tests/resources/permissions-helper.js
@@ -25,6 +25,8 @@ var PermissionsHelper = (function() {
return {name: "geolocation"};
case "background-sync":
return {name: "background-sync"};
+ case 'sensors':
+ return {name: 'sensors'};
default:
throw "Invalid permission name provided";
}

Powered by Google App Engine
This is Rietveld 408576698