| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/data_reduction_proxy/content/browser/content_lofi_decider.h
" | 5 #include "components/data_reduction_proxy/content/browser/content_lofi_decider.h
" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs.h" | 9 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs.h" |
| 10 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" | 10 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 } | 78 } |
| 79 | 79 |
| 80 // User is part of Lo-Fi active control experiment. | 80 // User is part of Lo-Fi active control experiment. |
| 81 if (request_info->IsUsingLoFi() && | 81 if (request_info->IsUsingLoFi() && |
| 82 params::IsIncludedInLoFiControlFieldTrial()) { | 82 params::IsIncludedInLoFiControlFieldTrial()) { |
| 83 if (headers->HasHeader(chrome_proxy_header())) { | 83 if (headers->HasHeader(chrome_proxy_header())) { |
| 84 headers->GetHeader(chrome_proxy_header(), &header_value); | 84 headers->GetHeader(chrome_proxy_header(), &header_value); |
| 85 headers->RemoveHeader(chrome_proxy_header()); | 85 headers->RemoveHeader(chrome_proxy_header()); |
| 86 header_value += ", "; | 86 header_value += ", "; |
| 87 } | 87 } |
| 88 header_value += chrome_proxy_lo_fi_experiment_directive(); | |
| 89 headers->SetHeader(chrome_proxy_header(), header_value); | 88 headers->SetHeader(chrome_proxy_header(), header_value); |
| 90 } | 89 } |
| 91 | 90 |
| 92 return false; | 91 return false; |
| 93 } | 92 } |
| 94 | 93 |
| 95 } // namespace data_reduction_proxy | 94 } // namespace data_reduction_proxy |
| OLD | NEW |