| Index: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc
|
| diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc
|
| index 47940ae8800e65f72c7647fcbcd6f98b09dec240..514575c24c77cc7059cd4d1e7a0f47fa993a1aca 100644
|
| --- a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc
|
| +++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc
|
| @@ -17,6 +17,7 @@
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h"
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
|
| #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.h"
|
| +#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
|
| #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
|
| #include "jni/DataReductionProxySettings_jni.h"
|
| #include "net/proxy/proxy_server.h"
|
| @@ -154,6 +155,14 @@ jboolean DataReductionProxySettingsAndroid::IsDataReductionProxyUnreachable(
|
| return Settings()->IsDataReductionProxyUnreachable();
|
| }
|
|
|
| +jboolean DataReductionProxySettingsAndroid::AreLoFiPreviewsEnabled(
|
| + JNIEnv* env,
|
| + const JavaParamRef<jobject>& obj) {
|
| + return data_reduction_proxy::params::IsIncludedInLoFiPreviewFieldTrial() ||
|
| + (data_reduction_proxy::params::IsLoFiOnViaFlags() &&
|
| + data_reduction_proxy::params::AreLoFiPreviewsEnabledViaFlags());
|
| +}
|
| +
|
| // static
|
| bool DataReductionProxySettingsAndroid::Register(JNIEnv* env) {
|
| return RegisterNativesImpl(env);
|
|
|