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

Unified Diff: content/browser/service_worker/service_worker_test_utils.h

Issue 2436223004: Use the serviceworker with mojo by default (Closed)
Patch Set: Rebase Created 4 years, 2 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
Index: content/browser/service_worker/service_worker_test_utils.h
diff --git a/content/browser/service_worker/service_worker_test_utils.h b/content/browser/service_worker/service_worker_test_utils.h
index 2a15815c30b017a43805ae000b196660d52b26ab..8aa67edbb47a3365e5efcf546fde5a047d74ed28 100644
--- a/content/browser/service_worker/service_worker_test_utils.h
+++ b/content/browser/service_worker/service_worker_test_utils.h
@@ -19,18 +19,14 @@ class MojoServiceWorkerTestP : public TestClass,
public testing::WithParamInterface<bool> {
protected:
void SetUp() override {
- is_mojo_enabled_ = GetParam();
- if (is_mojo_enabled()) {
+ if (!is_mojo_enabled()) {
base::CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kMojoServiceWorker);
+ switches::kDisableMojoServiceWorker);
}
TestClass::SetUp();
}
- bool is_mojo_enabled() const { return is_mojo_enabled_; }
-
- private:
- bool is_mojo_enabled_ = false;
+ bool is_mojo_enabled() const { return GetParam(); }
};
template <typename Arg>

Powered by Google App Engine
This is Rietveld 408576698