| Index: content/browser/service_worker/service_worker_version.cc
|
| diff --git a/content/browser/service_worker/service_worker_version.cc b/content/browser/service_worker/service_worker_version.cc
|
| index b47f556b5b51924ddf4fa340799cb22980e6c55d..062f24499b53aca54b1658f565625e5b32499e40 100644
|
| --- a/content/browser/service_worker/service_worker_version.cc
|
| +++ b/content/browser/service_worker/service_worker_version.cc
|
| @@ -38,7 +38,7 @@
|
| #include "content/public/browser/render_process_host.h"
|
| #include "content/public/common/browser_side_navigation_policy.h"
|
| #include "content/public/common/content_client.h"
|
| -#include "content/public/common/content_switches.h"
|
| +#include "content/public/common/content_features.h"
|
| #include "content/public/common/result_codes.h"
|
| #include "net/http/http_response_headers.h"
|
| #include "net/http/http_response_info.h"
|
| @@ -902,8 +902,7 @@ void ServiceWorkerVersion::OnScriptLoaded() {
|
| // used to retrieve the service worker js. This should be removed once
|
| // that's done.
|
| (IsBrowserSideNavigationEnabled() &&
|
| - base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableNetworkService)));
|
| + base::FeatureList::IsEnabled(features::kNetworkService)));
|
| if (IsInstalled(status()))
|
| UMA_HISTOGRAM_BOOLEAN("ServiceWorker.ScriptLoadSuccess", true);
|
| }
|
|
|