Parse CLI switch as a normal set declaration.

Bug: 1349781
Change-Id: I951c5ac68806a6e3470ae144ea2c34744a7f7a33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3884455
Commit-Queue: Chris Fredrickson <[email protected]>
Reviewed-by: Shuran Huang <[email protected]>
Auto-Submit: Chris Fredrickson <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Dominic Farolino <[email protected]>
Commit-Queue: Dominic Farolino <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1046037}
diff --git a/content/browser/renderer_host/cookie_browsertest.cc b/content/browser/renderer_host/cookie_browsertest.cc
index 153d2ff6..a145390 100644
--- a/content/browser/renderer_host/cookie_browsertest.cc
+++ b/content/browser/renderer_host/cookie_browsertest.cc
@@ -34,6 +34,7 @@
 #include "net/dns/mock_host_resolver.h"
 #include "net/http/alternative_service.h"
 #include "net/test/embedded_test_server/embedded_test_server.h"
+#include "services/network/public/cpp/network_switches.h"
 #include "services/network/public/mojom/restricted_cookie_manager.mojom-test-utils.h"
 #include "services/network/public/mojom/restricted_cookie_manager.mojom.h"
 #include "services/service_manager/public/cpp/interface_provider.h"
@@ -506,7 +507,9 @@
     // Set up First-Party Sets and also enables net::Feature::kFirstPartySets.
     // a.test, b.test and c.test are in the same FPS.
     command_line->AppendSwitchASCII(
-        "use-first-party-set", "https://a.test,https://b.test,https://c.test");
+        network::switches::kUseFirstPartySet,
+        R"({"primary": "https://a.test",)"
+        R"("associatedSites": ["https://b.test","https://c.test"]})");
   }
 };