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

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

Issue 2833523002: Adding opt out and previews type information to DRP pingback (Closed)
Patch Set: bengr comments Created 3 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/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc
index 612a3f02975084094fdee72dfe512989c62a64f3..425d1be797fcde448b75b7238b87c04322ea227e 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc
@@ -14,6 +14,8 @@ const void* const kDataReductionProxyUserDataKey =
DataReductionProxyData::DataReductionProxyData()
: used_data_reduction_proxy_(false),
lofi_requested_(false),
+ lite_page_received_(false),
+ lofi_received_(false),
effective_connection_type_(net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN) {}
DataReductionProxyData::~DataReductionProxyData() {}
@@ -23,6 +25,8 @@ std::unique_ptr<DataReductionProxyData> DataReductionProxyData::DeepCopy()
std::unique_ptr<DataReductionProxyData> copy(new DataReductionProxyData());
copy->used_data_reduction_proxy_ = used_data_reduction_proxy_;
copy->lofi_requested_ = lofi_requested_;
+ copy->lite_page_received_ = lite_page_received_;
+ copy->lofi_received_ = lofi_received_;
copy->session_key_ = session_key_;
copy->request_url_ = request_url_;
copy->effective_connection_type_ = effective_connection_type_;

Powered by Google App Engine
This is Rietveld 408576698