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

Unified Diff: chrome/browser/resources/options/content_settings_exceptions_area.js

Issue 8585047: Add a section for the fullscreen JS API in the content settings page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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_exceptions_area.js
diff --git a/chrome/browser/resources/options/content_settings_exceptions_area.js b/chrome/browser/resources/options/content_settings_exceptions_area.js
index 4f544b22aa1a300788ff2ef4991016912bedd97b..a8a58b13850ffec388112e198ea6ed70c6fe0fa1 100644
--- a/chrome/browser/resources/options/content_settings_exceptions_area.js
+++ b/chrome/browser/resources/options/content_settings_exceptions_area.js
@@ -82,10 +82,12 @@ cr.define('options.contentSettings', function() {
select.appendChild(optionSession);
}
- var optionBlock = cr.doc.createElement('option');
- optionBlock.textContent = templateData.blockException;
- optionBlock.value = 'block';
- select.appendChild(optionBlock);
+ if (this.contentType != 'fullscreen') {
+ var optionBlock = cr.doc.createElement('option');
+ optionBlock.textContent = templateData.blockException;
+ optionBlock.value = 'block';
+ select.appendChild(optionBlock);
+ }
this.contentElement.appendChild(select);
select.className = 'exception-setting';
@@ -361,7 +363,8 @@ cr.define('options.contentSettings', function() {
// Whether the exceptions in this list allow an 'Ask every time' option.
this.enableAskOption = (this.contentType == 'plugins' &&
templateData.enable_click_to_play);
-
+ this.enableAskOption = (this.enableAskOption ||
+ this.contentType == 'fullscreen');
this.autoExpands = true;
this.reset();
},

Powered by Google App Engine
This is Rietveld 408576698