Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

enable Chrome flags from the command line

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.

like image 796
Abhishek Agrawal Avatar asked Jun 18 '18 19:06

Abhishek Agrawal


2 Answers

  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.

like image 118
mayankSinha Avatar answered Sep 22 '22 01:09

mayankSinha


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.

like image 20
Garbee Avatar answered Sep 23 '22 01:09

Garbee