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

Unified Diff: net/base/network_change_notifier.cc

Issue 23064011: Consolidate scheme checks into an easy GURL method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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
« no previous file with comments | « net/base/mime_sniffer.cc ('k') | net/http/http_auth_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier.cc
diff --git a/net/base/network_change_notifier.cc b/net/base/network_change_notifier.cc
index a6335d03dc2ca16fb1e5ff66eb7c993ec952914d..fad9440c5bff56b3cd9df0100ab4685c02d122e4 100644
--- a/net/base/network_change_notifier.cc
+++ b/net/base/network_change_notifier.cc
@@ -249,7 +249,7 @@ class HistogramWatcher
// from the network thread.
void NotifyDataReceived(const URLRequest& request, int bytes_read) {
if (IsLocalhost(request.url().host()) ||
- !(request.url().SchemeIs("http") || request.url().SchemeIs("https"))) {
+ !request.url().SchemeIsHTTPOrHTTPS()) {
return;
}
« no previous file with comments | « net/base/mime_sniffer.cc ('k') | net/http/http_auth_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698