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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2960703003: Add a feature flag for network service and about:flags entry for it. (Closed)
Patch Set: merge Created 3 years, 5 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 | « content/browser/appcache/appcache_job.cc ('k') | content/browser/loader/navigation_url_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 3952b00a65272e313d66a5e2785ddefdcbde2e96..98efcf263a1ce672bcd99eb62815cee5d6993dbb 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -3232,8 +3232,7 @@ void RenderFrameHostImpl::CommitNavigation(
FrameMsg_CommitDataNetworkService_Params commit_data;
commit_data.handle = handle.release();
// TODO(scottmg): Pass a factory for SW, etc. once we have one.
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNetworkService)) {
+ if (base::FeatureList::IsEnabled(features::kNetworkService)) {
if (!subresource_url_loader_factory_info.is_valid()) {
const auto& schemes = URLDataManagerBackend::GetWebUISchemes();
if (std::find(schemes.begin(), schemes.end(),
« no previous file with comments | « content/browser/appcache/appcache_job.cc ('k') | content/browser/loader/navigation_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698