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

Unified Diff: chrome/browser/resources/options/content_settings.html

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: chrome/browser/resources/options/content_settings.html
diff --git a/chrome/browser/resources/options/content_settings.html b/chrome/browser/resources/options/content_settings.html
index c66fc23e19a7ecbb9f4c1ea7aa0aaee4296703bf..d0fdba14c2c2f8a417fb69e6cec6f474b69e786d 100644
--- a/chrome/browser/resources/options/content_settings.html
+++ b/chrome/browser/resources/options/content_settings.html
@@ -532,6 +532,34 @@
</div>
</div>
</section>
+ <!-- Sensors filter -->
+ <section>
+ <h3 i18n-content="sensorsHeader"></h3>
+ <div>
+ <div class="radio">
+ <label>
+ <input type="radio" name="sensors" value="allow">
+ <span i18n-content="sensorsAllow"></span>
+ </label>
+ </div>
+ <div class="radio">
+ <label>
+ <input type="radio" name="sensors" value="ask">
+ <span i18n-content="sensorsAsk"></span>
+ </label>
+ </div>
+ <div class="radio">
+ <label>
+ <input type="radio" name="sensors" value="block">
+ <span i18n-content="sensorsBlock"></span>
+ </label>
+ </div>
+ <div class="settings-row">
+ <button class="exceptions-list-button" contentType="sensors"
+ i18n-content="manageExceptions"></button>
+ </div>
+ </div>
+ </section>
<!-- Push messaging filter -->
<section id="experimental-push-messaging-settings" hidden="true">
<h3 i18n-content="pushMessagingHeader"></h3>
« no previous file with comments | « chrome/browser/permissions/permission_util.cc ('k') | chrome/browser/resources/options/content_settings_exceptions_area.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698