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

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

Issue 1156983002: Remove unused "Website Settings" view of content settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 db6fbf6b92829cbaa50a485efdde8a65ac8e1fb6..7d902551d98952533b9d68dc55686cec4b70a161 100644
--- a/chrome/browser/resources/options/content_settings.js
+++ b/chrome/browser/resources/options/content_settings.js
@@ -66,15 +66,6 @@ cr.define('options', function() {
};
}
- var experimentalExceptionsButtons =
- this.pageDiv.querySelectorAll('.website-settings-permission-button');
- for (var i = 0; i < experimentalExceptionsButtons.length; i++) {
- experimentalExceptionsButtons[i].onclick = function(event) {
- var hash = event.currentTarget.getAttribute('contentType');
- WebsiteSettingsManager.showWebsiteSettings(hash);
- };
- }
-
var manageHandlersButton = $('manage-handlers-button');
if (manageHandlersButton) {
manageHandlersButton.onclick = function(event) {
@@ -106,20 +97,6 @@ cr.define('options', function() {
ContentSettings.setDefaultMicrophone_);
$('media-select-camera').addEventListener('change',
ContentSettings.setDefaultCamera_);
-
- if (loadTimeData.getBoolean('websiteSettingsManagerEnabled')) {
- var oldUI =
- this.pageDiv.querySelectorAll('.replace-with-website-settings');
- for (var i = 0; i < oldUI.length; i++) {
- oldUI[i].hidden = true;
- }
-
- var newUI =
- this.pageDiv.querySelectorAll('.experimental-website-settings');
- for (var i = 0; i < newUI.length; i++) {
- newUI[i].hidden = false;
- }
- }
},
};
« no previous file with comments | « chrome/browser/resources/options/content_settings.html ('k') | chrome/browser/resources/options/options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698