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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc

Issue 1777673002: AGSA-initiated weblite intents should be rewritten if Chrome can use weblite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 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
« no previous file with comments | « chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698