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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java

Issue 2263433002: Remove Lo-Fi snackbar code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newLoFiInfoBarAddTabHelper
Patch Set: rebase Created 4 years, 3 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/android/java/src/org/chromium/chrome/browser/snackbar/LofiBarController.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java b/chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java
index 20425e341020a72253350f4b3511f3982b621937..36192137cbf5ddd779c64c87ba7c44e6fd6ac451 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java
@@ -182,22 +182,6 @@ public class DataReductionProxySettings {
nativeSetLoFiLoadImageRequested(mNativeDataReductionProxySettings);
}
- /**
- * Counts the number of times the Lo-Fi snackbar has been shown.
- * */
- public void incrementLoFiSnackbarShown() {
- nativeIncrementLoFiSnackbarShown(mNativeDataReductionProxySettings);
- }
-
- /**
- * Counts the number of requests to reload the page with images from the Lo-Fi snackbar. If the
- * user requests the page with images a certain number of times, then Lo-Fi is disabled for the
- * session.
- * */
- public void incrementLoFiUserRequestsForImages() {
- nativeIncrementLoFiUserRequestsForImages(mNativeDataReductionProxySettings);
- }
-
/** Returns true if the SPDY proxy is managed by an administrator's policy. */
public boolean isDataReductionProxyManaged() {
return nativeIsDataReductionProxyManaged(mNativeDataReductionProxySettings);
@@ -317,10 +301,6 @@ public class DataReductionProxySettings {
long nativeDataReductionProxySettingsAndroid);
private native void nativeSetLoFiLoadImageRequested(
long nativeDataReductionProxySettingsAndroid);
- private native void nativeIncrementLoFiSnackbarShown(
- long nativeDataReductionProxySettingsAndroid);
- private native void nativeIncrementLoFiUserRequestsForImages(
- long nativeDataReductionProxySettingsAndroid);
private native boolean nativeIsDataReductionProxyManaged(
long nativeDataReductionProxySettingsAndroid);
private native void nativeSetDataReductionProxyEnabled(
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/snackbar/LofiBarController.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698