Remove the plumbing for optOutDataReductionProxy API

Bug: 17253647
Change-Id: Ic722cd96bf8bfb895aa812a1181b1e0870ce0a1f
(cherry picked from commit 5b026de657a1e072549622323a7350af3afc5a9e)
diff --git a/chromium/java/com/android/webview/chromium/DataReductionProxyManager.java b/chromium/java/com/android/webview/chromium/DataReductionProxyManager.java
index dcb9c1e..7fe449c 100644
--- a/chromium/java/com/android/webview/chromium/DataReductionProxyManager.java
+++ b/chromium/java/com/android/webview/chromium/DataReductionProxyManager.java
@@ -70,9 +70,6 @@
         }
     }
 
-    // Accessed from multiple threads.
-    private volatile static boolean sOptedOutDataReductionProxy = false;
-
     private ProxySettingListener mProxySettingListener;
 
     private ContentObserver mProxySettingObserver;
@@ -142,10 +139,6 @@
     }
 
     private static boolean isDataReductionProxyEnabled(Context context) {
-        if (sOptedOutDataReductionProxy) {
-            return false;
-        }
-
         boolean enabled = getProxySetting(context.getContentResolver(),
                     WEBVIEW_DATA_REDUCTION_PROXY) != 0;
         // intentional fallback. remove before L release.
@@ -180,12 +173,4 @@
         }
         return enabled;
     }
-
-    // UI thread
-    public static void optOutDataReductionProxy() {
-        if (!sOptedOutDataReductionProxy) {
-            sOptedOutDataReductionProxy = true;
-            AwContentsStatics.setDataReductionProxyEnabled(false);
-        }
-    }
 }
diff --git a/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java b/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
index da29c37..c1f8c9d 100644
--- a/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
+++ b/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
@@ -362,11 +362,6 @@
                         }
                     }
 
-                    @Override
-                    public void optOutDataReductionProxy() {
-                        DataReductionProxyManager.optOutDataReductionProxy();
-                    }
-
                     // TODO: Add @Override.
                     public void enableSlowWholeDocumentDraw() {
                         WebViewChromium.enableSlowWholeDocumentDraw();