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

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

Issue 286013002: Added alternative configuration for the data reduction proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK fix Created 6 years, 7 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 1158748b17cae2b1559e2ce55a224a40c7593bb7..590598ae34ef5f0008f8ca99aaaa3fb23d9f51f7 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
@@ -35,6 +35,7 @@ DataReductionProxyAuthRequestHandler::auth_token_invalidation_timestamp_ = 0;
DataReductionProxyAuthRequestHandler::DataReductionProxyAuthRequestHandler(
DataReductionProxySettings* settings) : settings_(settings) {
+ DCHECK(settings);
}
DataReductionProxyAuthRequestHandler::~DataReductionProxyAuthRequestHandler() {
@@ -104,7 +105,7 @@ DataReductionProxyAuthRequestHandler::TryHandleAuthentication(
bool DataReductionProxyAuthRequestHandler::IsAcceptableAuthChallenge(
net::AuthChallengeInfo* auth_info) {
- return DataReductionProxySettings::IsAcceptableAuthChallenge(auth_info);
+ return settings_->IsAcceptableAuthChallenge(auth_info);
}
base::string16 DataReductionProxyAuthRequestHandler::GetTokenForAuthChallenge(

Powered by Google App Engine
This is Rietveld 408576698