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

Unified Diff: content/browser/worker_host/worker_service_impl.cc

Issue 240843002: Reverse the embedded-shared-worker flag to turn the feature on by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « content/browser/worker_host/test/worker_browsertest.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/worker_host/worker_service_impl.cc
diff --git a/content/browser/worker_host/worker_service_impl.cc b/content/browser/worker_host/worker_service_impl.cc
index 5064544c8ca1df32b9c855e7122ca8f4a633d363..4636777e1ce5f980eb9df281b6393db713282ba6 100644
--- a/content/browser/worker_host/worker_service_impl.cc
+++ b/content/browser/worker_host/worker_service_impl.cc
@@ -236,9 +236,9 @@ WorkerService* WorkerService::GetInstance() {
}
bool WorkerService::EmbeddedSharedWorkerEnabled() {
- static bool enabled = CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableEmbeddedSharedWorker);
- return enabled;
+ static bool disabled = CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableEmbeddedSharedWorker);
+ return !disabled;
}
WorkerServiceImpl* WorkerServiceImpl::GetInstance() {
« no previous file with comments | « content/browser/worker_host/test/worker_browsertest.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698