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

Unified Diff: net/url_request/url_request_job_manager.cc

Issue 2082603002: Introduce an 'ENABLE_WEBSOCKETS' define in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hsts
Patch Set: URLRequestJobManager Created 4 years, 6 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/url_request/url_request_http_job_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_job_manager.cc
diff --git a/net/url_request/url_request_job_manager.cc b/net/url_request/url_request_job_manager.cc
index 092708fc86a10b872071b5a3db267a3a25d318df..15790a74c860be9d6f3d48f37369c8dcd4e9239d 100644
--- a/net/url_request/url_request_job_manager.cc
+++ b/net/url_request/url_request_job_manager.cc
@@ -30,13 +30,13 @@ struct SchemeToFactory {
} // namespace
static const SchemeToFactory kBuiltinFactories[] = {
- { "http", URLRequestHttpJob::Factory },
- { "https", URLRequestHttpJob::Factory },
+ {"http", URLRequestHttpJob::Factory},
+ {"https", URLRequestHttpJob::Factory},
-#if !defined(OS_IOS)
- { "ws", URLRequestHttpJob::Factory },
- { "wss", URLRequestHttpJob::Factory },
-#endif // !defined(OS_IOS)
+#if defined(ENABLE_WEBSOCKETS)
+ {"ws", URLRequestHttpJob::Factory},
+ {"wss", URLRequestHttpJob::Factory},
+#endif // defined(ENABLE_WEBSOCKETS)
};
// static
« no previous file with comments | « net/url_request/url_request_http_job_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698