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

Unified Diff: android_webview/native/aw_contents_statics.cc

Issue 271523002: Add the plumbing to enable DRP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cache the initial value Created 6 years, 7 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 29453e65241001bc693faa27aefa343f33d18a04..41824c58f8a5b9824a4f48d3e39231bf60d2df3e 100644
--- a/android_webview/native/aw_contents_statics.cc
+++ b/android_webview/native/aw_contents_statics.cc
@@ -4,6 +4,7 @@
#include "android_webview/native/aw_contents_statics.h"
+#include "android_webview/browser/aw_browser_context.h"
#include "base/android/jni_string.h"
#include "base/android/scoped_java_ref.h"
#include "base/callback.h"
@@ -49,7 +50,12 @@ void ClearClientCertPreferences(JNIEnv* env, jclass, jobject callback) {
// static
void SetDataReductionProxyKey(JNIEnv* env, jclass, jstring key) {
- DataReductionProxySettings::SetKey(ConvertJavaStringToUTF8(env, key));
+ DataReductionProxySettings::SetKey(ConvertJavaStringToUTF8(env, key));
+}
+
+// static
+void SetDataReductionProxyEnabled(JNIEnv* env, jclass, jboolean enabled) {
+ AwBrowserContext::SetDataReductionProxyEnabled(enabled);
}
bool RegisterAwContentsStatics(JNIEnv* env) {

Powered by Google App Engine
This is Rietveld 408576698