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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.cc

Issue 530153002: Add build and patch to Chrome-Proxy header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using "" instead of string Created 6 years, 3 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/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);

Powered by Google App Engine
This is Rietveld 408576698