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 30faed4513617bdbe49af964b5d364da2e0f6d8d..fb3e7251f1a60cb761080b74132d923d1a18e301 100644 |
--- a/content/common/service_worker/service_worker_utils.cc |
+++ b/content/common/service_worker/service_worker_utils.cc |
@@ -6,6 +6,7 @@ |
#include <string> |
+#include "base/command_line.h" |
#include "base/logging.h" |
#include "base/strings/string_util.h" |
#include "content/public/common/origin_util.h" |
@@ -118,6 +119,12 @@ |
OriginCanAccessServiceWorkers(script_url); |
} |
+// static |
+bool ServiceWorkerUtils::IsMojoForServiceWorkerEnabled() { |
+ return base::CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kMojoServiceWorker); |
+} |
+ |
bool LongestScopeMatcher::MatchLongest(const GURL& scope) { |
if (!ServiceWorkerUtils::ScopeMatches(scope, url_)) |
return false; |