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

Unified Diff: content/browser/service_worker/service_worker_request_handler.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_worker/service_worker_request_handler.cc
diff --git a/content/browser/service_worker/service_worker_request_handler.cc b/content/browser/service_worker/service_worker_request_handler.cc
index 876144ec87de69dcaf8164c448f87965b2c439e5..a3b5c21c4207739265047eeb2c652a294b542bd2 100644
--- a/content/browser/service_worker/service_worker_request_handler.cc
+++ b/content/browser/service_worker/service_worker_request_handler.cc
@@ -21,6 +21,7 @@
#include "content/public/browser/resource_context.h"
#include "content/public/common/browser_side_navigation_policy.h"
#include "content/public/common/child_process_host.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/origin_util.h"
#include "content/public/common/resource_request_body.h"
@@ -130,8 +131,7 @@ ServiceWorkerRequestHandler::InitializeForNavigationNetworkService(
scoped_refptr<ResourceRequestBody> body,
const base::Callback<WebContents*(void)>& web_contents_getter) {
DCHECK(IsBrowserSideNavigationEnabled() &&
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNetworkService));
+ base::FeatureList::IsEnabled(features::kNetworkService));
DCHECK(navigation_handle_core);
// Create the handler even for insecure HTTP since it's used in the
« no previous file with comments | « content/browser/service_manager/service_manager_context.cc ('k') | content/browser/service_worker/service_worker_version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698