8

I want to enable a flag (enable-token-binding) while launching chrome. I can do that using chrome://flags page. but for running tests I need to do it from command line.

I tried

chrome --enable-features=token-binding

chrome --enable-token-binding

None of them worked.

Abhishek Agrawal
  • 2,183
  • 1
  • 17
  • 24

3 Answers3

7
  1. go to chrome://version
  2. Find the command line arguments:

Command Line /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --enable-audio-service-sandbox --flag-switches-begin --enable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies --flag-switches-end --enable-audio-service-sandbox

Run the above command with all the arguments and your chrome instance would have all the settings preset.

mayankSinha
  • 130
  • 1
  • 8
1

Try --flag-switches-begin --enable-token-binding --flag-switches-end.

The patter is --flag-switches start and ends capping the flags. Then the names of the flags provided as the parameters within with -- prefixed to them.

Garbee
  • 10,581
  • 5
  • 38
  • 41
1

Token Binding was removed in Chrome release 70

see https://www.chromestatus.com/feature/5097603234529280

mayankSinha's answer works for the flags he mentions. Note the changed naming convention though: "lower case split by -" convention gets changed to CamelCase.

i.e. same-site-by-default-cookies (as shown in chrome://flags) becomes SameSiteByDefaultCookies