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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc

Issue 726923004: Cleanup: Use http/https constants in components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/core/browser/data_reduction_proxy_interceptor.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc
index d9d6c5c894642c0c58f5ea0286369e8d72f6300e..2856e2167b0d0dcae9e5617a1d86dbda84e601db 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc
@@ -13,6 +13,7 @@
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_http_job.h"
#include "net/url_request/url_request_job_factory.h"
+#include "url/url_constants.h"
namespace data_reduction_proxy {
@@ -46,9 +47,9 @@ net::URLRequestJob* DataReductionProxyInterceptor::MaybeInterceptResponse(
return nullptr;
// Returning non-NULL has the effect of restarting the request with the
// supplied job.
- DCHECK(request->url().SchemeIs("http"));
+ DCHECK(request->url().SchemeIs(url::kHttpScheme));
return request->context()->job_factory()->MaybeCreateJobWithProtocolHandler(
- "http", request, network_delegate);
+ url::kHttpScheme, request, network_delegate);
}
} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698