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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsiteSettingsCategoryFilter.java

Issue 1221833002: Remove the Images category from Site Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/android/java/src/org/chromium/chrome/browser/preferences/website/WebsiteSettingsCategoryFilter.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsiteSettingsCategoryFilter.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsiteSettingsCategoryFilter.java
index 8c7ffc97ed6d95241bde9d199756a51836011f41..5a50e5dd38090fa3207574a249d8659eb892d6f2 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsiteSettingsCategoryFilter.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsiteSettingsCategoryFilter.java
@@ -14,7 +14,6 @@ public class WebsiteSettingsCategoryFilter {
private static final String FILTER_ALL_SITES = "all_sites";
private static final String FILTER_CAMERA = "camera";
private static final String FILTER_COOKIES = "cookies";
- private static final String FILTER_IMAGES = "images";
private static final String FILTER_JAVASCRIPT = "javascript";
private static final String FILTER_DEVICE_LOCATION = "device_location";
private static final String FILTER_FULLSCREEN = "fullscreen";
@@ -39,8 +38,6 @@ public class WebsiteSettingsCategoryFilter {
return ContentSettingsType.CONTENT_SETTINGS_TYPE_FULLSCREEN;
} else if (showGeolocationSites(key)) {
return ContentSettingsType.CONTENT_SETTINGS_TYPE_GEOLOCATION;
- } else if (showImagesSites(key)) {
- return ContentSettingsType.CONTENT_SETTINGS_TYPE_IMAGES;
} else if (showJavaScriptSites(key)) {
return ContentSettingsType.CONTENT_SETTINGS_TYPE_JAVASCRIPT;
} else if (showMicrophoneSites(key)) {
@@ -97,14 +94,6 @@ public class WebsiteSettingsCategoryFilter {
/**
* @param filterValue A category value.
- * @return Whether the category passed is the images category.
- */
- public boolean showImagesSites(String filterValue) {
- return filterValue.equals(FILTER_IMAGES);
- }
-
- /**
- * @param filterValue A category value.
* @return Whether the category passed is the javascript category.
*/
public boolean showJavaScriptSites(String filterValue) {

Powered by Google App Engine
This is Rietveld 408576698