How to specify command line flags
Let's say that you want to add two command line flags to chrome: --foo and --bar=2.
Windows
- Exit any running-instance of chrome.
- Find the shortcut you normally use to launch chrome.
- Create a copy of it
- Right click on the new shortcut, and select Properties
- At the very end of the Target: text box, add a space and then the desired command line flags. It should end in something like ...\chrome.exe" --foo --bar=2
- Double click the new shortcut to launch chrome with the new command line flags.
Mac OS X
- Quit any running instance of chrome.
- Launch /Applications/Utilities/Terminal.app
- At the command prompt enter: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --foo --bar=2
Linux
- Exit any running instance of chrome.
- Execute in a console: google-chrome --foo --bar=2 (If you are using a different named chrome/chromium build, change the command accordingly)
Chrome OS
- Put the device into dev mode so you can get a root shell
- Modify /etc/chrome_dev.conf (read the comments in the file for more details)
- Restart the UI via:
sudo restart ui
Android
- See more at https://sites.google.com/a/chromium.org/dev/developers/how-tos/run-chromium-with-flags