| 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..70460c5e751a12c3c75f9bcb509d65a8ca29d519 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
|
| @@ -15,6 +15,7 @@
|
| #include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.h"
|
| #include "components/data_reduction_proxy/common/data_reduction_proxy_headers.h"
|
| #include "components/data_reduction_proxy/common/data_reduction_proxy_switches.h"
|
| +#include "components/data_reduction_proxy/common/version.h"
|
| #include "crypto/random.h"
|
| #include "net/proxy/proxy_server.h"
|
| #include "net/url_request/url_request.h"
|
| @@ -34,6 +35,15 @@ const char kClientChromeAndroid[] = "android";
|
| const char kClientChromeIOS[] = "ios";
|
|
|
| // static
|
| +std::string DataReductionProxyAuthRequestHandler::ChromiumVersion() {
|
| +#if defined(PRODUCT_VERSION)
|
| + return PRODUCT_VERSION;
|
| +#else
|
| + return std::string();
|
| +#endif
|
| +}
|
| +
|
| +// static
|
| bool DataReductionProxyAuthRequestHandler::IsKeySetOnCommandLine() {
|
| const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
| return command_line.HasSwitch(
|
|
|