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

Unified Diff: content/common/service_worker/service_worker_utils.cc

Issue 2477223002: Reland of Use the serviceworker with mojo by default (Closed)
Patch Set: Rebase for navigation-preload Created 4 years, 1 month 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/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 368dfbf23a65e81434768bd7f1f6375d09ef5847..9abc85887f4f96efa7262190628d00748468f5a1 100644
--- a/content/common/service_worker/service_worker_utils.cc
+++ b/content/common/service_worker/service_worker_utils.cc
@@ -134,8 +134,8 @@ bool ServiceWorkerUtils::AllOriginsMatchAndCanAccessServiceWorkers(
// static
bool ServiceWorkerUtils::IsMojoForServiceWorkerEnabled() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kMojoServiceWorker);
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableMojoServiceWorker);
}
bool LongestScopeMatcher::MatchLongest(const GURL& scope) {
« no previous file with comments | « content/browser/service_worker/service_worker_test_utils.h ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698