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

Unified Diff: chrome/browser/resources/settings/site_settings/site_settings_behavior.js

Issue 2457843002: MD Settings: Misc. Site Settings cleanups. (Closed)
Patch Set: fix Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/site_settings_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/site_settings/site_settings_behavior.js
diff --git a/chrome/browser/resources/settings/site_settings/site_settings_behavior.js b/chrome/browser/resources/settings/site_settings/site_settings_behavior.js
index c3043c93bf9b52a905d722cafadf58bbb565adc8..bd0b1ca0488bfda9edfe70df70cb118e0b123865 100644
--- a/chrome/browser/resources/settings/site_settings/site_settings_behavior.js
+++ b/chrome/browser/resources/settings/site_settings/site_settings_behavior.js
@@ -33,52 +33,6 @@ var SiteSettingsBehaviorImpl = {
},
/**
- * A utility function to lookup a category name from its enum. Note: The
- * category name is visible to the user as part of the URL.
- * @param {string} category The category ID to look up.
- * @return {string} The category found or blank string if not found.
- * @protected
- */
- computeCategoryTextId: function(category) {
- switch (category) {
- case settings.ContentSettingsTypes.AUTOMATIC_DOWNLOADS:
- return 'automatic-downloads';
- case settings.ContentSettingsTypes.BACKGROUND_SYNC:
- return 'background-sync';
- case settings.ContentSettingsTypes.CAMERA:
- return 'camera';
- case settings.ContentSettingsTypes.COOKIES:
- return 'cookies';
- case settings.ContentSettingsTypes.GEOLOCATION:
- return 'location';
- case settings.ContentSettingsTypes.IMAGES:
- return 'images';
- case settings.ContentSettingsTypes.JAVASCRIPT:
- return 'javascript';
- case settings.ContentSettingsTypes.KEYGEN:
- return 'keygen';
- case settings.ContentSettingsTypes.MIC:
- return 'microphone';
- case settings.ContentSettingsTypes.NOTIFICATIONS:
- return 'notifications';
- case settings.ContentSettingsTypes.PLUGINS:
- return 'plugins';
- case settings.ContentSettingsTypes.POPUPS:
- return 'popups';
- case settings.ContentSettingsTypes.PROTOCOL_HANDLERS:
- return 'handlers';
- case settings.ContentSettingsTypes.UNSANDBOXED_PLUGINS:
- return 'unsandboxed-plugins';
- case settings.ContentSettingsTypes.USB_DEVICES:
- return 'usb-devices';
- case settings.ContentSettingsTypes.ZOOM_LEVELS:
- return 'zoom-levels';
- default:
- return '';
- }
- },
-
- /**
* A utility function to lookup the route for a category name.
* @param {string} category The category ID to look up.
* @return {!settings.Route}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/site_settings_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698