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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadFilter.java

Issue 2271583006: [Android] Implement back key functionality in download manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@loading
Patch Set: fix test Created 4 years, 4 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/download/ui/DownloadFilter.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadFilter.java b/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadFilter.java
index c95ece78a7f2a0291a55bf0bd872e5f4632daa50..bd982c28755e4cf1ef79e2e8742c3695cf5675d7 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadFilter.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadFilter.java
@@ -14,7 +14,7 @@ import org.chromium.chrome.browser.UrlConstants;
* A class holding constants and convenience methods about filters and their corresponding
* resources.
*/
-class DownloadFilter {
+public class DownloadFilter {
// These statics are used for UMA logging. Please update the AndroidDownloadFilterType enum in
// histograms.xml if these change.
static final int FILTER_ALL = 0;
@@ -68,7 +68,7 @@ class DownloadFilter {
/**
* @return The URL representing the filter.
*/
- static String getUrlForFilter(int filter) {
+ public static String getUrlForFilter(int filter) {
if (filter == FILTER_ALL) {
return UrlConstants.DOWNLOADS_URL;
}
@@ -78,7 +78,7 @@ class DownloadFilter {
/**
* @return The filter that the given URL represents.
*/
- static int getFilterFromUrl(String url) {
+ public static int getFilterFromUrl(String url) {
if (TextUtils.isEmpty(url) || UrlConstants.DOWNLOADS_HOST.equals(url)) return FILTER_ALL;
int result = FILTER_ALL;
if (url.startsWith(UrlConstants.DOWNLOADS_FILTER_URL)) {

Powered by Google App Engine
This is Rietveld 408576698