Guide to adding command line flags.

37 views
Skip to first unread message

Alex Vallée

unread,
Nov 26, 2013, 6:48:44 PM11/26/13
to chromi...@chromium.org
Hi chromium-dev,

Is there a page explaining the basics of adding a command line flag to chrome? I did a quick search got me a list of CLs that wire in some flags, but those are noisy and all slightly different in how they do it.

Thanks.

Ryan Sleevi

unread,
Nov 26, 2013, 6:55:42 PM11/26/13
to ava...@chromium.org, Chromium-dev
Obligatory "Are you sure you want to do that?" and insert anti-command-line-flag rant here

That said,
content/public/common/content_switches.*
chrome/common/chrome_switches.*

Then just check the switches.

Of course, if you're also looking for something that can be controlled via policy, you'll want to add a pref, then also consider wiring up the command-line flag to the pref via chrome/browser/prefs/command_line_pref_store.*

And while you're at it wiring up a command-line pref, you should also consider adding an enterprise policy if appropriate, chrome/app/policy/policy_templates.json




--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Reply all
Reply to author
Forward
0 new messages