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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h

Issue 2934543002: Sending a page load pingback to data saver for holdback users (Closed)
Patch Set: tbansl comment Created 3 years, 6 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/browser/data_reduction_proxy_data.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h
index 55b792b0239dd3b2ed40c53b35e39fb329e97d55..c3f6d60ffd5fba49ae03189656547b9d9cf3f305 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h
@@ -30,6 +30,8 @@ class DataReductionProxyData : public base::SupportsUserData::Data {
~DataReductionProxyData() override;
// Whether the DataReductionProxy was used for this request or navigation.
+ // Also true if the user is the holdback experiment, and the request would
+ // otherwise be eligible to use the proxy.
bool used_data_reduction_proxy() const { return used_data_reduction_proxy_; }
void set_used_data_reduction_proxy(bool used_data_reduction_proxy) {
used_data_reduction_proxy_ = used_data_reduction_proxy;
@@ -105,6 +107,8 @@ class DataReductionProxyData : public base::SupportsUserData::Data {
private:
// Whether the DataReductionProxy was used for this request or navigation.
+ // Also true if the user is the holdback experiment, and the request would
+ // otherwise be eligible to use the proxy.
bool used_data_reduction_proxy_;
// Whether server Lo-Fi was requested for this request or navigation. True if

Powered by Google App Engine
This is Rietveld 408576698