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

Unified Diff: content/browser/service_manager/service_manager_context.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/service_manager/service_manager_context.cc
diff --git a/content/browser/service_manager/service_manager_context.cc b/content/browser/service_manager/service_manager_context.cc
index 18d7950b0bcc81fdf650ad98efa7292827b47ff3..b0056bba3a2cf2e652488dda4dfb380528226a4c 100644
--- a/content/browser/service_manager/service_manager_context.cc
+++ b/content/browser/service_manager/service_manager_context.cc
@@ -30,6 +30,7 @@
#include "content/public/browser/utility_process_host.h"
#include "content/public/browser/utility_process_host_client.h"
#include "content/public/common/content_client.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/service_manager_connection.h"
#include "content/public/common/service_names.mojom.h"
@@ -354,8 +355,7 @@ ServiceManagerContext::ServiceManagerContext() {
->RegisterUnsandboxedOutOfProcessServices(&unsandboxed_services);
bool network_service_enabled =
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNetworkService);
+ base::FeatureList::IsEnabled(features::kNetworkService);
if (network_service_enabled) {
unsandboxed_services.insert(
std::make_pair(content::mojom::kNetworkServiceName,

Powered by Google App Engine
This is Rietveld 408576698