Lista de linea de comando de Chrome-Chromium

Posted by & filed under geek, linux, tutorial.

La gente entra al blog buscando:”linea de comandos chromium”.

Vamos a darles lo que quieren:


Source tal vez más actualizado: http://peter.sh/experiments/chromium-command-line-switches/

 

Condition Explanation
–activate-on-launch Activate (make foreground) myself on launch. Helpful when Chrome is launched on the command line (e.g. by Selenium). Only needed on Mac.
–allow-file-access On ChromeOS, file:// access is disabled except for certain whitelisted directories. This switch re-enables file:// for testing.
–allow-http-background-page Allow non-https URL for background_page for hosted apps.
–allow-outdated-plugins Don’t block outdated plugins.
–always-authorize-plugins This prevents Chrome from requiring authorization to run certain widely installed but less commonly used plug-ins.
–always-enable-dev-tools Enable web inspector for all windows, even if they’re part of the browser. Allows us to use our dev tools to debug browser windows itself.
–app Specifies that the associated value should be launched in “application” mode.
–app-id Specifies that the extension-app with the specified id should be launched according to its configuration.
–apps-checkout-url Override the apps checkout URL, which is used to determine when to expose some private APIs.
–apps-no-throb Disable throbber for extension apps.
–assert-test Causes the browser process to throw an assertion on startup.
–auth-negotiate-delegate-whitelist Whitelist of servers that Negotiate will generate delegated Kerberos tickets for.
–auth-schemes HTTP authentication schemes to enable. This is a comma separated list of authentication schemes (basic, digest, ntlm, and negotiate). By default all schemes are enabled. The primary use of this command line flag is to help triage autentication-related issues reported by end-users.
–auth-server-whitelist Whitelist of servers which NTLM and Negotiate can automatically authenticate with using the default credentials of the currently logged in user.
–auto These are the values the switch may have, as in “–prerender=auto”. auto: Allow field trial selection in both prerender and prefetch.
–automation-channel The value of this switch tells the app to listen for and broadcast automation-related messages on IPC channel with the given ID.
–block-reading-third-party-cookies When the option to block third-party cookies from being set is enabled, also block third-party cookies from being read.
–bwsi [1] Indicates that the browser is in “browse without sign-in” (Guest session) mode. Should completely disable extensions, sync and bookmarks.
–check-for-update-interval How often (in seconds) to check for updates. Should only be used for testing purposes.
–chrome-frame Run Chrome in Chrome Frame mode. This means that Chrome expects to be run as a dependent process of the Chrome Frame plugin.
–chrome-version Tells chrome to load the specified version of chrome.dll on Windows. If this version cannot be loaded, Chrome will exit.
–chromeos-frame [1] Use the frame layout used in chromeos.
–clear-token-service [2] Clear the token service before using it. This allows simulating the expiration of credentials during testing.
–cloud-print-file Tells chrome to display the cloud print dialog and upload the specified file for printing.
–cloud-print-file-type Specifies the mime type to be used when uploading data from the file referenced by cloud-print-file. Defaults to “application/pdf” if unspecified.
–cloud-print-job-title Used with kCloudPrintFile to specify a title for the resulting print job.
–cloud-print-proxy-id The unique id to be used for this cloud print proxy instance.
–cloud-print-service The URL of the cloud print service to use, overrides any value stored in preferences, and the default. Only used if the cloud print service has been enabled (see enable-cloud-print).
–compress-sys-feedback [1] Flag to trigger ChromeOS system log compression during feedback submit.
–conflicting-modules-check Causes the browser process to inspect loaded and registered DLLs for known conflicts and warn the user.
–country The Country we should use. This is normally obtained from the operating system during first run and cached in the preferences afterwards. This is a string value, the 2 letter code from ISO 3166-1.
–crash-test Causes the browser process to crash on startup.
–debug-devtools If enabled, tries to load inspector files from disk (allows reloading of devtool files without having to restart the browser).
–debug-print Enables support to debug printing subsystem.
–debug-views-paint [3] Enables debug paint in views framework. Enabling this causes the damaged region being painted to flash in red.
–device-management-url Specifies the URL at which to fetch configuration policy from the device management backend. Specifying this switch turns on managed policy from the device management backend.
–diagnostics Triggers a pletora of diagnostic modes.
–disable-accelerated-layers Disables the hardware acceleration of 3D CSS and animation.
–disable-accelerated-video Disables GPU accelerated video display.
–disable-auth-negotiate-cname-lookup Disable CNAME lookup of the host when generating the Kerberos SPN for a Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN for more background.
–disable-background-mode Disable background mode (background apps will not keep chrome running in the background).
–disable-background-networking Disable several subsystems which run network requests in the background. This is for use when doing network performance testing to avoid noise in the measurements.
–disable-blocked-content-animation Disables blocked content warning animation. Currently shows animation for blocked pop-ups only.
–disable-client-side-phishing-detection This switch is used to disable the client-side phishing detection feature. Note that even if client-side phishing detection is enabled, it will only be active if the user has opted in to UMA stats and SafeBrowsing is enabled in the preferences.
–disable-connect-backup-jobs Disables establishing a backup TCP connection if a specified timeout is exceeded.
–disable-custom-jumplist Disables the custom JumpList on Windows 7.
–disable-dev-tools Browser flag to disable the web inspector for all renderers.
–disable-extensions Disable extensions.
–disable-extensions-file-access-check Disable checking for user opt-in for extensions that want to inject script into file URLs (ie, always allow it). This is used during automated testing.
–disable-flash-sandbox Disables the sandbox for the built-in flash player.
–disable-hang-monitor Suppresses hang monitor dialogs in renderer processes. This may allow slow unload handlers on a page to prevent the tab from closing, but the Task Manager can be used to terminate the offending process in this case.
–disable-history-quick-provider Disable the use of the HistoryQuickProvider for autocomplete results.
–disable-history-url-provider Disable the use of the HistoryURLProvider for autocomplete results.
–disable-interactive-form-validation Disables HTML5 Forms interactive validation.
–disable-internal-flash Disable the internal Flash Player.
–disable-ip-pooling Disables IP Pooling within the networks stack (SPDY only). When a connection is needed for a domain which shares an IP with an existing connection, attempt to use the existing connection.
–disable-ipv6 Don’t resolve hostnames to IPv6 addresses. This can be used when debugging issues relating to IPv6, but shouldn’t otherwise be needed. Be sure to file bugs if something isn’t working properly in the presence of IPv6. This flag can be overidden by the “enable-ipv6″ flag.
–disable-new-tab-first-run Whether we should prevent the new tab page from showing the first run notification.
–disable-preconnect Disable speculative TCP/IP preconnection.
–disable-prompt-on-repost Normally when the user attempts to navigate to a page that was the result of a post we prompt to make sure they want to. This switch may be used to disable that check. This switch is used during automated testing.
–disable-remote-fonts Disable remote web font support. SVG font should always work whether this option is specified or not.
–disable-renderer-accessibility Turns off the accessibility in the renderer.
–disable-restore-background-contents Prevents the URLs of BackgroundContents from being remembered and re-launched when the browser restarts.
–disable-site-specific-quirks Disable site-specific tailoring to compatibility issues in WebKit.
–disable-ssl-false-start Disable False Start in SSL and TLS connections.
–disable-sync Disable syncing browser data to a Google Account.
–disable-sync-apps Disable syncing of apps.
–disable-sync-autofill Disable syncing of autofill.
–disable-sync-autofill-profile Disable syncing of autofill Profile.
–disable-sync-bookmarks Disable syncing of bookmarks.
–disable-sync-extensions Disable syncing of extensions.
–disable-sync-passwords Disable syncing browser passwords.
–disable-sync-preferences Disable syncing of preferences.
–disable-sync-themes Disable syncing of themes.
–disable-tab-closeable-state-watcher TabCloseableStateWatcher disallows closing of tabs and browsers under certain situations on ChromeOS. Some tests expect tabs or browsers to close, so we need a switch to disable the watcher.
–disable-translate Allow disabling of translate from the command line to assist with automated browser testing (e.g. Selenium/WebDriver). Normal browser users should disable translate with the preference.
–disable-web-resources Disables the backend service for web resources.
–disable-web-security Don’t enforce the same-origin policy. (Used by people testing their sites.)
–disable-winsta Disables the alternate window station for the renderer.
–disable-xss-auditor Disable WebKit’s XSSAuditor. The XSSAuditor mitigates reflective XSS.
–disabled disabled: No prerendering or prefetching.
–disk-cache-dir Use a specific disk cache location, rather than one derived from the UserDatadir.
–disk-cache-size Forces the maximum disk space to be used by the disk cache, in bytes.
–dns-log-details No description
–dns-prefetch-disable Disables prefetching of DNS information.
–dns-server Use the specified DNS server for raw DNS resolution.
–dom-automation Specifies if the |DOMAutomationController| needs to be bound in the renderer. This binding happens on per-frame basis and hence can potentially be a performance bottleneck. One should only enable it when automating dom based tests. Also enables sending/receiving renderer automation messages through the |AutomationRenderViewHelper|. TODO(kkania): Rename this to enable-renderer-automation after moving the |DOMAutomationController| to the |AutomationRenderViewHelper|.
–dom-login [1] Enable DOM based login screens.
–dump-histograms-on-exit Dump any accumualted histograms to the log when browser terminates (requires logging to be enabled to really do anything). Used by developers and test scripts.
–enable-accelerated-2d-canvas Enable gpu-accelerated 2d canvas.
–enable-accelerated-plugins Enables the hardware acceleration of plugins.
–enable-advanced-fs [1] Enables Advanced File System.
–enable-aero-peek-tabs Enables AeroPeek for each tab. (This switch only works on Windows 7).
–enable-auth-negotiate-port Enable the inclusion of non-standard ports when generating the Kerberos SPN in response to a Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN for more background.
–enable-clear-server-data This flag enables UI for clearing server data. Temporarily in place until there’s a server endpoint deployed.
–enable-click-to-play Enable click-to-play for blocked plug-ins.
–enable-client-side-phishing-interstitial At this point, even if client-side phishing detection is enabled we will not, by default, display an interstitial if we detected a phishing site. Once we are confident that the false-positive rate is as low as expected we can remove this flag.
–enable-cloud-print Enables the Cloud Print dialog hosting code.
–enable-cloud-print-proxy This applies only when the process type is “service”. Enables the Cloud Print Proxy component within the service process.
–enable-composite-to-texture Enables compositing to texture instead of display.
–enable-connect-backup-jobs Enables establishing a backup TCP connection if a specified timeout is exceeded.
–enable-crash-reporter [4] A flag, generated internally by Chrome for renderer and other helper process command lines on Linux and Mac. It tells the helper process to enable crash dumping and reporting, because helpers cannot access the profile or other files needed to make this decision.
–enable-crxless-web-apps Enables web developers to create apps for Chrome without using crx packages.
–enable-device-policy [1] Enables device policy support on ChromeOS.
–enable-dns-cert-provenance-checking Enable DNS side checking of certificates. Still experimental, should only be used by developers at the current time.
–enable-dnssec-certs No description
–enable-experimental-app-manifests Enables app manifest features that are in development.
–enable-experimental-eap [1] Enable all 802.1X EAP Wi-Fi connection modes, like EAP-TLS and LEAP. TODO(jamescook): Remove this when all major 802.1X modes are supported through the full network stack, specifically those that require TPM and client-side certificates.
–enable-experimental-extension-apis Enables extension APIs that are in development.
–enable-expose-for-tabs [5] Enables the tabs expose feature ( http://crbug.com/50307 ).
–enable-extension-timeline-api Enable experimental timeline API.
–enable-fastback Enable the fastback page cache.
–enable-file-cookies By default, cookies are not allowed on file://. They are needed for testing, for example page cycler and layout tests. See bug 1157243.
–enable-fullscreen Enable the JavaScript Full Screen API.
–enable-gview [1] Enable the redirection of viewable document requests to the Google Document Viewer.
–enable-history-quick-provider Enable the use of the HistoryQuickProvider for autocomplete results.
–enable-in-browser-thumbnailing Enable the in-browser thumbnailing, which is more efficient than the in-renderer thumbnailing, as we can use more information to determine if we need to update thumbnails.
–enable-ip-pooling Enables IP Pooling within the networks stack (SPDY only). When a connection is needed for a domain which shares an IP with an existing connection, attempt to use the existing connection.
–enable-ipv6 Enable IPv6 support, even if probes suggest that it may not be fully supported. Some probes may require internet connections, and this flag will allow support independent of application testing. This flag overrides “disable-ipv6″ which appears elswhere in this file.
–enable-login-images [1] Should we show the image based login?
–enable-media-player [1] Enables Media Player.
–enable-memory-info Allows reporting memory info (JS heap size) to page.
–enable-nacl Runs the Native Client inside the renderer process and enables GPU plugin (internally adds lEnableGpuPlugin to the command line).
–enable-nacl-debug Enables debugging via RSP over a socket.
–enable-panels Enable panels (always on-top docked pop-up windows).
–enable-preconnect Enable speculative TCP/IP preconnection.
–enable-print-preview Enable print preview (work in progress).
–enable-remoting This applies only when the process type is “service”. Enables the Chromoting Host Process within the service process.
–enable-resource-content-settings Enable content settings based on host *and* plug-in.
–enable-sdch Enable support for SDCH filtering (dictionary based expansion of content). Optional argument is *the* only domain name that will have SDCH suppport. Default is “-enable-sdch” to advertise SDCH on all domains. Sample usage with argument: “-enable-sdch=.google.com” SDCH is currently only supported server-side for searches on google.com.
–enable-search-provider-api-v2 Enable the IsSearchProviderInstalled and InstallSearchProvider with an extra parameter to indicate if the provider should be the default.
–enable-snap-start Enables 0-RTT HTTPS handshakes.
–enable-sync Enable syncing browser data to a Google Account.
–enable-sync-autofill Enable syncing browser autofill.
–enable-sync-sessions Enable syncing browser sessions.
–enable-sync-typed-urls Enable syncing browser typed urls.
–enable-tab-groups-context-menu Enables context menu for selecting groups of tabs.
–enable-tcp-fastopen Enable use of experimental TCP sockets API for sending data in the SYN packet.
–enable-vertical-tabs Enables the option to show tabs as a vertical stack down the side of the browser window.
–enable-vpn [1] Enables VPN support on ChromeOS.
–enable-watchdog Spawn threads to watch for excessive delays in specified message loops. User should set breakpoints on Alarm() to examine problematic thread. Usage: -enable-watchdog=[ui][io] Order of the listed sub-arguments does not matter.
–enabled enabled: Both prerendering and prefetching.
–experimental-spellchecker-features Enables experimental features for Spellchecker. Right now, the first experimental feature is auto spell correct, which corrects words which are misppelled by typing the word with two consecutive letters swapped. The features that will be added next are: 1 – Allow multiple spellcheckers to work simultaneously. 2 – Allow automatic detection of spell check language. TODO(sidchat): Implement the above fetaures to work under this flag.
–explicitly-allowed-ports Explicitly allow additional ports using a comma separated list of port numbers.
–expose-private-extension-api [2] Debug only switch to give access to all private extension APIs to any non-component extension that is requesting it.
–extensions-update-frequency Frequency in seconds for Extensions auto-update.
–feedback-server Alternative feedback server to use when submitting user feedback
–file-descriptor-limit The file descriptor limit is set to the value of this switch, subject to the OS hard limits. Useful for testing that file descriptor exhaustion is handled gracefully.
–first-run Display the First Run experience when the browser is started, regardless of whether or not it’s actually the first run.
–flag-switches-begin These two flags are added around the switches about:flags adds to the command line. This is useful to see which switches were added by about:flags on about:version. They don’t have any effect.
–flag-switches-end No description
–focus-existing-tab-on-open If true opening a url from the omnibox attepts to focus an existing tab.
–force-apps-promo-visible Forces the apps/webstore promo to be shown, independent of whether it has timed out, etc. Useful for testing.
–force-compositing-mode If accelerated compositing is supported, always enter compositing mode for the base layer even when compositing is not strictly required.
–force-fieldtest Some field tests may rendomized in the browser, and the randomly selected outcome needs to be propagated to the renderer. For instance, this is used to modify histograms recorded in the renderer, or to get the renderer to also set of its state (initialize, or not initialize components) to match the experiment(s). The argument is a string-ized list of experiment names, and the associated value that was randomly selected. In the recent implementetaion, the persistent representation generated by field_trial.cc and later decoded, is a list of name and value pairs, separated by slashes. See field trial.cc for current details.
–force-renderer-accessibility Force renderer accessibility to be on instead of enabling it on demand when a screen reader is detected. The disable-renderer-accessibility switch overrides this if present.
–force-stub-libcros [1] Forces usage of libcros stub implementation. For testing purposes, this switch separates chrome code from the rest of ChromeOS.
–gssapi-library-name Specifies a custom name for the GSSAPI library to load.
–h No description
–help These flags show the man page on Linux. They are equivalent to each other.
–hide-icons Make Windows happy by allowing it to show “Enable access to this program” checkbox in Add/Remove Programs->Set Program Access and Defaults. This only shows an error box because the only way to hide Chrome is by uninstalling it.
–homepage The value of this switch specifies which page will be displayed in newly-opened tabs. We need this for testing purposes so that the UI tests don’t depend on what comes up for http://google.com.
–host-resolver-parallelism The maximum number of concurrent host resolve requests (i.e. DNS) to allow.
–host-resolver-rules These mappings only apply to the host resolver.
–host-rules Comma separated list of rules that control how hostnames are mapped. For example: “MAP * 127.0.0.1″ –> Forces all hostnames to be mapped to 127.0.0.1 “MAP *.google.com proxy” –> Forces all google.com subdomains to be resolved to “proxy”. “MAP test.com [::1]:77 –> Forces “test.com” to resolve to IPv6 loopback. Will also force the port of the resulting socket address to be 77. “MAP * baz, EXCLUDE www.google.com” –> Remaps everything to “baz”, except for “www.google.com”. These mappings apply to the endpoint host in a net::URLRequest (the TCP connect and host resolver in a direct connection, and the CONNECT in an http proxy connection, and the endpoint host in a SOCKS proxy connection).
–ignore-certificate-errors Ignore certificate related errors.
–ignore-gpu-blacklist Ignores GPU blacklist.
–import Perform importing from another browser. The value associated with this setting encodes the target browser and what items to import.
–import-from-file Perform bookmark importing from an HTML file. The value associated with this setting encodes the file path. It may be used jointly with kImport.
–incognito Causes the browser to launch directly in incognito mode.
–instant-url URL to use for instant. If specified this overrides the url from the TemplateURL.
–keep-alive-for-test Used for testing – keeps browser alive after last browser window closes.
–keep-mouse-cursor [6] Debug only switch to prevent the mouse cursor from disappearing when touch is enabled
–kiosk [7] Enable Kiosk mode.
–lang [1] Use the given language for UI in the input method candidate window.
–load-extension Load an extension from the specified directory.
–load-opencryptoki Load the opencryptoki library into NSS at startup. This is only needed temporarily for developers who need to work on WiFi/VPN certificate code. TODO(gspencer): Remove this switch once cryptohomed work is finished: http://crosbug.com/12295 and http://crosbug.com/12304
–login-manager [1] Enable Chrome-as-a-login-manager behavior.
–login-password [1] Specifies a password to be used to login (along with login-user).
–login-profile [1] Specifies the profile to use once a chromeos user is logged in.
–login-screen [1] Allows to override the first login screen. The value should be the name of the first login screen to show (see chrome/browser/chromeos/login/login_wizard_view.cc for actual names). Ignored if kLoginManager is not specified. TODO(avayvod): Remove when the switch is no longer needed for testing.
–login-screen-size [1] Allows control over the initial login screen size. Pass width,height.
–login-user [1] Specifies the user which is already logged in.
–login-user-with-new-password [1] Allows to emulate situation when user logins with new password.
–make-default-browser Make Chrome default browser
–max-spdy-concurrent-streams Set the maximum concurrent streams over a SPDY session.
–max-spdy-sessions-per-domain Set the maximum SPDY sessions per domain.
–media-cache-size Forces the maximum disk space to be used by the media cache, in bytes.
–memory-profile Enable dynamic loading of the Memory Profiler DLL, which will trace all memory allocations during the run.
–message-loop-histogrammer Enable histograming of tasks served by MessageLoop. See about:histograms/Loop for results, which show frequency of messages on each thread, including APC count, object signalling count, etc.
–metrics-recording-only Enables the recording of metrics reports but disables reporting. In contrast to kDisableMetrics, this executes all the code that a normal client would use for reporting, except the report is dropped rather than sent to the server. This is useful for finding issues in the metrics code during UI and performance tests.
–min-clearsitedata-flash-version The minimum version of Flash that implements the NPP_ClearSiteData API.
–multi-profiles Enables multiprofile Chrome.
–nacl-broker Causes the process to run as a NativeClient broker (used for launching NaCl loader processes on 64-bit Windows).
–nacl-debug-ip Sets the default IP address (interface) for the stub (normally 127.0.0.1).
–nacl-debug-ports Sets the default port range for debugging.
–nacl-startup-dialog Causes the Native Client process to display a dialog on launch.
–new-syncer-thread Use new experimental SyncerThread implementation and friends.
–new-tab-page-4 Use the latest incarnation of the new tab page.
–new-window Launch URL in new browser window.
–no-default-browser-check Disables the default browser check. Useful for UI/browser tests where we want to avoid having the default browser info-bar displayed.
–no-events Don’t record/playback events when using record & playback.
–no-experiments Disables all experiments set on about:flags. Does not disable about:flags itself. Useful if an experiment makes chrome crash at startup: One can start chrome with –no-experiments, disable the problematic lab at about:flags and then restart chrome without this switch again.
–no-first-run whether or not it’s actually the first run. Overrides kFirstRun in case you’re for some reason tempted to pass them both.
–no-pings Don’t send hyperlink auditing pings
–no-process-singleton-dialog [4] Bypass the error dialog when the profile lock couldn’t be attained. This switch is used during automated testing.
–no-proxy-server Don’t use a proxy server, always make direct connections. Overrides any other proxy server flags that are passed.
–no-service-autorun Disables the service process from adding itself as an autorun process. This does not delete existing autorun registrations, it just prevents the service from registering a new one.
–no-startup-window Does not automatically open a browser window on startup (used when launching Chrome for the purpose of hosting background apps).
–notify-cp-token-expired Show a desktop notification that the cloud print token has expired and that user needs to re-authenticate.
–num-pac-threads Specifies the maximum number of threads to use for running the Proxy Autoconfig (PAC) script.
–organic Simulate an organic Chrome install.
–pack-extension Package an extension to a .crx installable file from a given directory.
–pack-extension-key Optional PEM private key is to use in signing packaged .crx.
–parallel-auth [1] Attempts to perform Chrome OS offline and online login in parallel.
–parent-profile Specifies the path to the user data folder for the parent profile.
–password-store [8] Specifies which password store to use (detect, default, gnome, kwallet).
–ppapi-flash-in-process Forces the PPAPI version of Flash (if it’s being used) to run in the renderer process rather than in a separate plugin process.
–prefetch_only prefetch_only: No prerendering, but enable prefetching.
–prerender Controls speculative prerendering of pages, and content prefetching. Both are dispatched from <link rel=prefetch href=…> elements.
–print Prints the pages on the screen.
–product-version Output the product version information and quit. Used as an internal api to detect the installed version of Chrome on Linux.
–profiling-at-start Starts the sampling based profiler for the browser process at startup. This will only work if chrome has been built with the gyp variable profiling=1. The output will go to the value of kProfilingFile.
–profiling-file Specifies a location for profiling output. This will only work if chrome has been built with the gyp variable profiling=1. {pid} if present will be replaced by the pid of the process. {count} if present will be incremented each time a profile is generated for this process. The default is chrome-profile-{pid}.
–profiling-flush Controls whether profile data is periodically flushed to a file. Normally the data gets written on exit but cases exist where chrome doesn’t exit cleanly (especially when using single-process). A time in seconds can be specified.
–proxy-auto-detect Force proxy auto-detection.
–proxy-bypass-list Specify a list of hosts for whom we bypass proxy settings and use direct connections. Ignored if –proxy-auto-detect or –no-proxy-server are also specified. This is a comma separated list of bypass rules. See: “net/proxy/proxy_bypass_rules.h” for the format of these rules.
–proxy-pac-url Use the pac script at the given URL
–proxy-server Use a specified proxy server, overrides system settings. This switch only affects HTTP and HTTPS requests.
–purge-memory-button Adds a “Purge memory” button to the Task Manager, which tries to dump as much memory as possible. This is mostly useful for testing how well the MemoryPurger functionality works. NOTE: This is only implemented for Views.
–reload-killed-tabs Reload pages that have been killed when they are next focused by the user.
–remote-debugging-port Enable remote debug over HTTP on the specified port.
–remote-shell-port Enable remote debug / automation shell on the specified port.
–renderer-assert-test Causes the renderer process to throw an assertion on launch.
–renderer-check-false-test [9] Causes the renderer process to throw an assertion on launch.
–restore-last-session Indicates the last session should be restored on startup. This overrides the preferences value and is primarily intended for testing. The value of this switch is the number of tabs to wait until loaded before ‘load completed’ is sent to the ui_test.
–safebrowsing-disable-auto-update If present, safebrowsing only performs update when SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called. This is used for testing only.
–safebrowsing-disable-download-protection TODO(lzheng): Remove this flag once the feature works fine (http://crbug.com/74848). This flag disables safebrowsing feature that checks download url and download content’s hash to make sure the content are not malicious.
–safebrowsing-info-url-prefix URL prefix used by safebrowsing to fetch hash, download data and report malware.
–safebrowsing-mackey-url-prefix URL prefix used by safebrowsing to get MAC key.
–screen-saver-url [1] URL of the html page for Screen Saver.
–scroll-pixels [10] Specify the amount the trackpad should scroll by.
–search-in-omnibox-hint Enables the showing of an info-bar instructing user they can search directly from the omnibox.
–service-account-lsid The LSID of the account to use for the service process.
–set-token [2] Sets a token in the token service, for testing.
–show-composited-layer-borders Renders a border around composited Render Layers to help debug and study layer compositing.
–show-composited-layer-tree Draws a textual dump of the compositor layer tree to help debug and study layer compositing.
–show-fps-counter Draws a FPS indicator
–show-icons See kHideIcons.
–silent-dump-on-dcheck Change the DCHECKS to dump memory and continue instead of displaying error dialog. This is valid only in Release mode when –enable-dcheck is specified.
–start-maximized Start the browser maximized, regardless of any previous settings.
–stub-cros [1] Indicates that stub implementations of the libcros library should be used. This is typically used to test the chromeos build of chrome on the desktop.
–sync-allow-insecure-xmpp-connection Allow insecure XMPP connections for sync (for testing).
–sync-invalidate-xmpp-login Invalidate any login info passed into sync’s XMPP connection.
–sync-notification-host Override the default host used for sync notifications. Can be either “host” or “host:port”.
–sync-notification-method Override the default notification method for sync.
–sync-try-ssltcp-first-for-xmpp Try to connect to XMPP using SSLTCP first (for testing).
–sync-url Override the default server used for profile sync.
–syncer-thread-timed-stop Use the SyncerThread implementation that matches up with the old pthread impl semantics, but using Chrome synchronization primitives. The only difference between this and the default is that we now have no timeout on Stop(). Should only use if you experience problems with the default.
–test-load-libcros [1] Attempts to load libcros and validate it, then exits. A nonzero return code means the library could not be loaded correctly.
–test-nacl-sandbox Runs the security test for the NaCl loader sandbox.
–test-name Pass the name of the current running automated test to Chrome.
–test-type Pass the type of the current test harness (“browser” or “ui”)
–testing-channel The value of this switch tells the app to listen for and broadcast testing-related messages on IPC channel with the given ID.
–touch-devices [11] Tells chrome to interpret events from these devices as touch events. Only available with XInput 2 (i.e. X server 1.8 or above). The id’s of the devices can be retrieved from ‘xinput list’.
–trusted-plugins Excludes these plugins from the plugin sandbox. This is a comma-separated list of plugin library names.
–try-chrome-again Experimental. Shows a dialog asking the user to try chrome. This flag is to be used only by the upgrade process.
–uninstall Runs un-installation steps that were done by chrome first-run.
–uninstall-extension Uninstall an extension with the specified extension id.
–use-spdy Use Spdy for the transport protocol instead of HTTP. This is a temporary testing flag.
–use-system-ssl [12] Use the system SSL library (Secure Transport on Mac, SChannel on Windows) instead of NSS for SSL.
–user-data-dir Specifies the user data directory, which is where the browser will look for all of its state.
–user-scripts-dir directory to locate user scripts in as an over-ride of the default
–utility-cmd-prefix On POSIX only: the contents of this flag are prepended to the utility process command line. Useful values might be “valgrind” or “xterm -e gdb –args”.
–version Print version information and quit.
–websocket-live-experiment-host [2] Debug only switch to specify which websocket live experiment host to be used. If host is specified, it also makes initial delay shorter (5 min to 5 sec) to make it faster to test websocket live experiment code.
–winhttp-proxy-resolver Use WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to use Chromium’s network stack to fetch, and V8 to evaluate.

How to use a command line switch?

The Chromium Team has made a page on which they briefly explain how to use these switches.

Conditions

These are rather technical. While most are pretty self-explanatory, keep in mind that any condition means that a switch isn’t always available.

  1. The constant “OS_CHROMEOS” must be defined.
  2. The constant “NDEBUG” must not be defined.
  3. The constant “TOOLKIT_VIEWS” must be defined.
  4. The constant “OS_POSIX” must be defined.
  5. The constant “OS_MACOSX” must be defined.
  6. The constant “TOUCH_UI” must be defined.
  7. The constant “OS_MACOSX” must not be defined.
  8. The constant “OS_MACOSX) && !defined(OS_CHROMEOS” must not be defined.
  9. The constant “OFFICIAL_BUILD” must not be defined.
  10. The constant “OS_LINUX” must be defined.
  11. The constant “HAVE_XINPUT2″ must be defined.
  12. One of these constants must be defined: “OS_MACOSX”, “OS_WIN”.

 

Post Similares: