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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc

Issue 2864333003: Use the Previews Black List for server previews (Closed)
Patch Set: deps change Created 3 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: components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
index 5e3cd12f13414510cf584f57c1cb057cd304e8ac..a866f12df2a32f4e2f60fc594b7edd70f4dad757 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
@@ -45,6 +45,9 @@ const char kLitePageFallbackFieldTrial[] =
"DataCompressionProxyLitePageFallback";
const char kLoFiFlagFieldTrial[] = "DataCompressionProxyLoFiFlag";
+const char kBlacklistTransitionFieldTrial[] =
+ "DataReductionProxyPreviewsBlacklistTransition";
megjablon 2017/05/09 19:58:33 s/Blacklist/BlackList Please check that this cons
RyanSturm 2017/05/09 22:35:19 Done.
+
const char kTrustedSpdyProxyFieldTrialName[] = "DataReductionTrustedSpdyProxy";
// Default URL for retrieving the Data Reduction Proxy configuration.
@@ -271,6 +274,12 @@ bool IsConfigClientEnabled() {
kDisabled, base::CompareCase::SENSITIVE);
}
+bool IsBlackListEnabledForServerPreviews() {
+ return base::StartsWith(
+ base::FieldTrialList::FindFullName(kBlacklistTransitionFieldTrial),
+ kEnabled, base::CompareCase::SENSITIVE);
+}
+
GURL GetConfigServiceURL() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
std::string url;

Powered by Google App Engine
This is Rietveld 408576698