| Index: content/common/service_worker/service_worker_utils.cc
|
| diff --git a/content/common/service_worker/service_worker_utils.cc b/content/common/service_worker/service_worker_utils.cc
|
| index 9834b830c9d0d8c41e74b429055f45323a5a849b..805644e74c030c77fc93474a684ce6002d6abb5e 100644
|
| --- a/content/common/service_worker/service_worker_utils.cc
|
| +++ b/content/common/service_worker/service_worker_utils.cc
|
| @@ -9,6 +9,8 @@
|
| #include "base/command_line.h"
|
| #include "base/logging.h"
|
| #include "base/strings/string_util.h"
|
| +#include "content/public/common/browser_side_navigation_policy.h"
|
| +#include "content/public/common/content_switches.h"
|
| #include "content/public/common/origin_util.h"
|
|
|
| namespace content {
|
| @@ -133,6 +135,13 @@ bool ServiceWorkerUtils::AllOriginsMatchAndCanAccessServiceWorkers(
|
| }
|
|
|
| // static
|
| +bool ServiceWorkerUtils::IsServicificationEnabled() {
|
| + return IsBrowserSideNavigationEnabled() &&
|
| + base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableNetworkService);
|
| +}
|
| +
|
| +// static
|
| bool ServiceWorkerUtils::IsMojoForServiceWorkerEnabled() {
|
| return true;
|
| }
|
|
|