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

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: more updates Created 3 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
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 eee0ac94ec098ba3ed1bd19c6332bc49882cdb96..49093c3f70942c11af109e143ecc6632fad48995 100644
--- a/content/browser/service_manager/service_manager_context.cc
+++ b/content/browser/service_manager/service_manager_context.cc
@@ -31,6 +31,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"
@@ -360,8 +361,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