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

Unified Diff: components/cronet/android/test/native_test_server.cc

Issue 1112513003: Put Data Reduction Proxy support in Cronet behind a gyp flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cronet
Patch Set: Created 5 years, 8 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: components/cronet/android/test/native_test_server.cc
diff --git a/components/cronet/android/test/native_test_server.cc b/components/cronet/android/test/native_test_server.cc
index cc52b3034f9851d2a18dada7f620be7112a12972..10541ef980e1319a1fe057317a203bcf00e2058d 100644
--- a/components/cronet/android/test/native_test_server.cc
+++ b/components/cronet/android/test/native_test_server.cc
@@ -152,6 +152,14 @@ jstring GetHostPort(JNIEnv* env, jclass jcaller) {
return base::android::ConvertUTF8ToJavaString(env, host_port).Release();
}
+jboolean IsDataReductionProxySupported(JNIEnv* env, jclass jcaller) {
+#if defined(DATA_REDUCTION_PROXY_SUPPORT)
+ return true;
mef 2015/05/13 18:21:24 JNI_TRUE
bengr 2015/05/15 00:54:55 Done.
+#else
+ return false;
mef 2015/05/13 18:21:25 JNI_FALSE
bengr 2015/05/15 00:54:55 Done.
+#endif
+}
+
bool RegisterNativeTestServer(JNIEnv* env) {
return RegisterNativesImpl(env);
}

Powered by Google App Engine
This is Rietveld 408576698