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

Unified Diff: content/renderer/renderer_blink_platform_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/renderer/render_frame_impl.cc ('k') | content/utility/utility_service_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index f5613ba3005403a18c458ec9de395554b493f3c2..8382852e3ff8bef1946c068043b3f29815b682ad 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -42,6 +42,7 @@
#include "content/common/frame_messages.h"
#include "content/common/gpu_stream_constants.h"
#include "content/common/render_process_messages.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/webplugininfo.h"
@@ -311,10 +312,7 @@ std::unique_ptr<blink::WebURLLoader> RendererBlinkPlatformImpl::CreateURLLoader(
ChildThreadImpl* child_thread = ChildThreadImpl::current();
if (!url_loader_factory_ && child_thread) {
- bool network_service_enabled =
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNetworkService);
- if (network_service_enabled) {
+ if (base::FeatureList::IsEnabled(features::kNetworkService)) {
mojom::URLLoaderFactoryPtr factory_ptr;
connector_->BindInterface(mojom::kBrowserServiceName, &factory_ptr);
url_loader_factory_ = std::move(factory_ptr);
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/utility/utility_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698