| Index: components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.cc
|
| diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.cc
|
| index 3f1565684a729c2da104c692fa1197b957c28f9f..b5e27d644d42c9664337d9ccca7250f01827aee2 100644
|
| --- a/components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.cc
|
| +++ b/components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.cc
|
| @@ -25,7 +25,7 @@ namespace data_reduction_proxy {
|
| // The empty version for the authentication protocol. Currently used by
|
| // Android webview.
|
| #if defined(OS_ANDROID)
|
| -const char kAndroidWebViewProtocolVersion[] = "0";
|
| +const char kAndroidWebViewProtocolVersion[] = "";
|
| #endif
|
|
|
| // The clients supported by the data reduction proxy.
|
| @@ -42,13 +42,15 @@ bool DataReductionProxyAuthRequestHandler::IsKeySetOnCommandLine() {
|
|
|
| DataReductionProxyAuthRequestHandler::DataReductionProxyAuthRequestHandler(
|
| const std::string& client,
|
| - const std::string& version,
|
| + const std::string& build_number,
|
| + const std::string& patch_number,
|
| DataReductionProxyParams* params,
|
| scoped_refptr<base::SingleThreadTaskRunner> network_task_runner)
|
| : data_reduction_proxy_params_(params),
|
| network_task_runner_(network_task_runner) {
|
| client_ = client;
|
| - version_ = version;
|
| + build_number_ = build_number;
|
| + patch_number_ = patch_number;
|
| Init();
|
| }
|
|
|
| @@ -112,7 +114,8 @@ void DataReductionProxyAuthRequestHandler::AddAuthorizationHeader(
|
| header_value += ", ";
|
| }
|
| header_value +=
|
| - "ps=" + session_ + ", sid=" + credentials_ + ", v=" + version_;
|
| + "ps=" + session_ + ", sid=" + credentials_ + ", b=" + build_number_ +
|
| + ", p=" + patch_number_;
|
| if (!client_.empty())
|
| header_value += ", c=" + client_;
|
| headers->SetHeader(kChromeProxyHeader, header_value);
|
|
|