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

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

Issue 2010253003: Sending a data saver Pageload metrics pingback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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.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 4290b2e16cc03de6286c60706edf0b8c99ea1b83..4a9ce2607d47407158ed9f6e503cef37e050c196 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
@@ -12,20 +12,22 @@ const void* const kDataReductionProxyUserDataKey =
&kDataReductionProxyUserDataKey;
DataReductionProxyData::DataReductionProxyData()
: used_data_reduction_proxy_(false), lofi_requested_(false) {}
std::unique_ptr<DataReductionProxyData> DataReductionProxyData::DeepCopy()
const {
std::unique_ptr<DataReductionProxyData> copy(new DataReductionProxyData());
copy->used_data_reduction_proxy_ = used_data_reduction_proxy_;
copy->lofi_requested_ = lofi_requested_;
+ copy->session_key_ = session_key_;
+ copy->original_request_url_ = original_request_url_;
return copy;
}
DataReductionProxyData* DataReductionProxyData::GetData(
const net::URLRequest& request) {
DataReductionProxyData* data = static_cast<DataReductionProxyData*>(
request.GetUserData(kDataReductionProxyUserDataKey));
return data;
}

Powered by Google App Engine
This is Rietveld 408576698