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

Unified Diff: chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.js

Issue 2581643002: Define a new policy to disable clearing the browsing history from the UI. (Closed)
Patch Set: less headers Created 4 years 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/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.js
diff --git a/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.js b/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.js
index 4dcf3ccceb089f7314c4668836cfa0751cbc133c..5c8d55722aeff98d7b8e3bde1df11083fb4a7bb0 100644
--- a/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.js
+++ b/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.js
@@ -69,9 +69,6 @@ Polymer({
ready: function() {
this.$.clearFrom.menuOptions = this.clearFromOptions_;
this.addWebUIListener(
- 'browsing-history-pref-changed',
- this.setAllowDeletingHistory_.bind(this));
- this.addWebUIListener(
'update-footer',
this.updateFooter_.bind(this));
this.addWebUIListener(
@@ -89,19 +86,6 @@ Polymer({
},
/**
- * @param {boolean} allowed Whether the user is allowed to delete histories.
- * @private
- */
- setAllowDeletingHistory_: function(allowed) {
- this.$.browsingCheckbox.disabled = !allowed;
- this.$.downloadCheckbox.disabled = !allowed;
- if (!allowed) {
- this.set('prefs.browser.clear_data.browsing_history.value', false);
- this.set('prefs.browser.clear_data.download_history.value', false);
- }
- },
-
- /**
* Updates the footer to show only those sentences that are relevant to this
* user.
* @param {boolean} syncing Whether the user is syncing data.

Powered by Google App Engine
This is Rietveld 408576698