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

Unified Diff: chrome_frame/test/net/test_automation_provider.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 | « chrome/common/extensions/manifest_url_handler.cc ('k') | content/browser/download/file_metadata_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/net/test_automation_provider.cc
diff --git a/chrome_frame/test/net/test_automation_provider.cc b/chrome_frame/test/net/test_automation_provider.cc
index 496e9437bbd23be574cadf45b1c40602e7ddc9fb..9acec9a9ef0c713aa166adcb8f30e911d42752f9 100644
--- a/chrome_frame/test/net/test_automation_provider.cc
+++ b/chrome_frame/test/net/test_automation_provider.cc
@@ -77,7 +77,7 @@ net::URLRequestJob* TestAutomationProvider::Factory(
if (CFTestsDisabled())
return NULL;
- if (request->url().SchemeIs("http") || request->url().SchemeIs("https")) {
+ if (request->url().SchemeIsHTTPOrHTTPS()) {
// Only look at requests that don't have any user data.
// ResourceDispatcherHost uses the user data for requests that it manages.
// We don't want to mess with those.
« no previous file with comments | « chrome/common/extensions/manifest_url_handler.cc ('k') | content/browser/download/file_metadata_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698