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

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

Issue 10911283: Implement 'Do Not Track' header (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 3 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/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index 9d62bd1f8ff40944de64f6c00b6525b956b15270..4d2be3ff45dc2995292ddfc2248e4e1b171f223c 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -282,6 +282,13 @@ cr.define('options', function() {
[String(event.target.checked)]);
};
}
+ $('do-not-track-enabled').customChangeHandler = function(event) {
+ if (this.checked) {
+ OptionsPage.showPageByName('doNotTrackConfirm', false);
+ return true;
+ }
+ return false;
+ };
// Bluetooth (CrOS only).
if (cr.isChromeOS) {

Powered by Google App Engine
This is Rietveld 408576698