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

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

Issue 7310003: Disable chrome://options UI elements if the corresponding preference is not user-modifiable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 5 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.js
diff --git a/chrome/browser/resources/options/content_settings.js b/chrome/browser/resources/options/content_settings.js
index bcd58ce023565042a677d976e6d643fa9f2334be..2790f3f64a16db04717b2fac8fefa8541c2b25c7 100644
--- a/chrome/browser/resources/options/content_settings.js
+++ b/chrome/browser/resources/options/content_settings.js
@@ -54,11 +54,6 @@ cr.define('options', function() {
}
// Cookies filter page ---------------------------------------------------
- $('block-third-party-cookies').onclick = function(event) {
- chrome.send('setAllowThirdPartyCookies',
- [String($('block-third-party-cookies').checked)]);
- };
-
$('show-cookies-button').onclick = function(event) {
chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']);
OptionsPage.navigateToPage('cookies');
@@ -121,14 +116,6 @@ cr.define('options', function() {
};
/**
- * Sets the initial value for the Third Party Cookies checkbox.
- * @param {boolean=} block True if we are blocking third party cookies.
- */
- ContentSettings.setBlockThirdPartyCookies = function(block) {
- $('block-third-party-cookies').checked = block;
- };
-
- /**
* The browser's response to a request to check the validity of a given URL
* pattern.
* @param {string} type The content type.

Powered by Google App Engine
This is Rietveld 408576698