Index: content/browser/loader/resource_dispatcher_host_impl.cc |
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc |
index a5d74a92cd6954b74f778985fefad2b86e18017d..769758c99f032e57a3870f890ca4d2118ac06987 100644 |
--- a/content/browser/loader/resource_dispatcher_host_impl.cc |
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc |
@@ -77,6 +77,7 @@ |
#include "content/public/browser/stream_info.h" |
#include "content/public/browser/user_metrics.h" |
#include "content/public/common/content_switches.h" |
+#include "content/public/common/data_reduction_proxy_lofi_user_data.h" |
#include "content/public/common/process_type.h" |
#include "ipc/ipc_message_macros.h" |
#include "ipc/ipc_message_start.h" |
@@ -1230,6 +1231,9 @@ void ResourceDispatcherHostImpl::BeginRequest( |
new_request->set_method(request_data.method); |
new_request->set_first_party_for_cookies( |
request_data.first_party_for_cookies); |
+ new_request->SetUserData( |
+ DataReductionProxyLoFiUserData::kUserDataKey, |
+ new DataReductionProxyLoFiUserData(request_data.lofi_state)); |
// If the request is a MAIN_FRAME request, the first-party URL gets updated on |
// redirects. |