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

Unified Diff: content/browser/renderer_host/render_process_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
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 32ad1d579ee0d5ffd5b0ce243c26900e571b4c77..e799662934f25b6fe638b003af2dd5f462dc3fd0 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1708,8 +1708,7 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
base::Bind(&RenderProcessHostImpl::CreateRendererHost,
base::Unretained(this)));
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNetworkService)) {
+ if (base::FeatureList::IsEnabled(features::kNetworkService)) {
AddUIThreadInterface(
registry.get(),
base::Bind(&RenderProcessHostImpl::CreateURLLoaderFactory,
@@ -1759,8 +1758,7 @@ void RenderProcessHostImpl::GetAssociatedInterface(
void RenderProcessHostImpl::GetBlobURLLoaderFactory(
mojom::URLLoaderFactoryRequest request) {
- if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNetworkService)) {
+ if (!base::FeatureList::IsEnabled(features::kNetworkService)) {
NOTREACHED();
return;
}
@@ -1814,8 +1812,7 @@ void RenderProcessHostImpl::CreateRendererHost(
void RenderProcessHostImpl::CreateURLLoaderFactory(
const service_manager::BindSourceInfo& source_info,
mojom::URLLoaderFactoryRequest request) {
- if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNetworkService)) {
+ if (!base::FeatureList::IsEnabled(features::kNetworkService)) {
NOTREACHED();
return;
}
@@ -2317,7 +2314,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kEnableLCDText,
switches::kEnableLogging,
switches::kEnableNetworkInformation,
- switches::kEnableNetworkService,
switches::kEnablePinch,
switches::kEnablePluginPlaceholderTesting,
switches::kEnablePreciseMemoryInfo,
« no previous file with comments | « content/browser/loader/navigation_url_loader.cc ('k') | content/browser/service_manager/service_manager_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698