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

Unified Diff: android_webview/native/aw_contents_statics.cc

Issue 2101153003: Remove data reduction proxy code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: android_webview/native/aw_contents_statics.cc
diff --git a/android_webview/native/aw_contents_statics.cc b/android_webview/native/aw_contents_statics.cc
index e3c49efbd140029a756f5d9c3255aef2856d5038..f34d275562e0df461bc3ec624f455f869e62a697 100644
--- a/android_webview/native/aw_contents_statics.cc
+++ b/android_webview/native/aw_contents_statics.cc
@@ -54,37 +54,6 @@ void ClearClientCertPreferences(JNIEnv* env,
}
// static
-void SetDataReductionProxyKey(JNIEnv* env,
- const JavaParamRef<jclass>&,
- const JavaParamRef<jstring>& key) {
- AwBrowserContext* browser_context = AwBrowserContext::GetDefault();
- DCHECK(browser_context);
- // The following call to GetRequestContext() could possibly be the first such
- // call, which means AwURLRequestContextGetter::InitializeURLRequestContext
- // will be called on IO thread as a result.
- AwURLRequestContextGetter* aw_url_request_context_getter =
- static_cast<AwURLRequestContextGetter*>(
- content::BrowserContext::GetDefaultStoragePartition(browser_context)->
- GetURLRequestContext());
- DCHECK(aw_url_request_context_getter);
-
- // This PostTask has to be called after GetRequestContext, because SetKeyOnIO
- // needs a valid DataReductionProxyRequestOptions object.
- BrowserThread::PostTask(BrowserThread::IO,
- FROM_HERE,
- base::Bind(&AwURLRequestContextGetter::SetKeyOnIO,
- aw_url_request_context_getter,
- ConvertJavaStringToUTF8(env, key)));
-}
-
-// static
-void SetDataReductionProxyEnabled(JNIEnv* env,
- const JavaParamRef<jclass>&,
- jboolean enabled) {
- AwBrowserContext::SetDataReductionProxyEnabled(enabled);
-}
-
-// static
ScopedJavaLocalRef<jstring> GetUnreachableWebDataUrl(
JNIEnv* env,
const JavaParamRef<jclass>&) {

Powered by Google App Engine
This is Rietveld 408576698