Chrome的启动参数集锦(一)
List of Chromium Command Line Switches
Condition | Explanation |
Classic, non-material, mode for the |kTopChromeMD| switch. ↪ | |
--0 ⊗ | Value of the --profiler-timing flag that will disable timing information for chrome://profiler. ↪ |
--? ⊗ | No description ↪ |
--adaboost ⊗ | No description ↪ |
--agc-startup-min-volume ⊗ | Override the default minimum starting volume of the Automatic Gain Control algorithm in WebRTC used with audio tracks from getUserMedia. The valid range is 12-255. Values outside that range will be clamped to the lowest or highest valid value inside WebRTC. TODO(tommi): Remove this switch when crbug.com/555577 is fixed. ↪ |
--aggressive ⊗ | No description ↪ |
--aggressive-cache-discard ⊗ | No description ↪ |
--aggressive-tab-discard ⊗ | No description ↪ |
--allow-autofill-sync-credential ⊗ | Force the password manager to allow sync credentials to be autofilled. ↪ |
--allow-cross-origin-auth-prompt ⊗ | Allows third-party content included on a page to prompt for a HTTP basic auth username/password pair. ↪ |
--allow-external-pages ⊗ | Allow access to external pages during layout tests. ↪ |
--allow-file-access ⊗ | On ChromeOS, file:// access is disabled except for certain whitelisted directories. This switch re-enables file:// for testing. ↪ |
--allow-file-access-from-files ⊗ | By default, file:// URIs cannot read other file:// URIs. This is an override for developers who need the old behavior for testing. ↪ |
--allow-hidden-media-playback ⊗ | Allows media playback for hidden WebContents ↪ |
--allow-http-background-page ⊗ | Allows non-https URL for background_page for hosted apps. ↪ |
--allow-http-screen-capture ⊗ | Allow non-secure origins to use the screen capture API and the desktopCapture extension API. ↪ |
--allow-insecure-localhost ⊗ | Enables TLS/SSL errors on localhost to be ignored (no interstitial, no blocking of requests). ↪ |
--allow-legacy-extension-manifests ⊗ | Allows the browser to load extensions that lack a modern manifest when that would otherwise be forbidden. ↪ |
--allow-loopback-in-peer-connection ⊗ | Allows loopback interface to be added in network list for peer connection. ↪ |
Specifies comma-separated list of extension ids or hosts to grant access to CRX file system APIs. ↪ | |
Specifies comma-separated list of extension ids or hosts to grant access to file handle APIs. ↪ | |
Specifies comma-separated list of extension ids or hosts to grant access to TCP/UDP socket APIs. ↪ | |
--allow-no-sandbox-job ⊗ | Enables the sandboxed processes to run without a job object assigned to them. This flag is required to allow Chrome to run in RemoteApps or Citrix. This flag can reduce the security of the sandboxed processes and allow them to do certain API calls like shut down Windows or access the clipboard. Also we lose the chance to kill some processes until the outer job that owns them finishes. ↪ |
--allow-outdated-plugins ⊗ | Don't block outdated plugins. ↪ |
--allow-ra-in-dev-mode ⊗ | Allows remote attestation (RA) in dev mode for testing purpose. Usually RA is disabled in dev mode because it will always fail. However, there are cases in testing where we do want to go through the permission flow even in dev mode. This can be enabled by this flag. ↪ |
--allow-running-insecure-content ⊗ | By default, an https page cannot run JavaScript, CSS or plugins from http URLs. This provides an override to get the old insecure behavior. ↪ |
--allow-sandbox-debugging ⊗ | Allows debugging of sandboxed processes (see zygote_main_linux.cc). ↪ |
No description ↪ | |
The Alsa device to use when opening an audio input stream. ↪ | |
The Alsa device to use when opening an audio stream. ↪ | |
--also-emit-success-logs ⊗ | Also emit full event trace logs for successful tests. ↪ |
--alternative-service-probability-threshold⊗ | Specifies the probability threshold for alternative services: an advertised alternative service will only be honored if the advertised probability is greater than or equal to this threshold. ↪ |
--always-authorize-plugins ⊗ | Prevents Chrome from requiring authorization to run certain widely installed but less commonly used plugins. ↪ |
--always-on ⊗ | No description ↪ |
--always-use-complex-text ⊗ | Always use the complex text path for layout tests. ↪ |
--alwaystrue ⊗ | No description ↪ |
--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. ↪ |
--app-mode-auth-code ⊗ | Value of GAIA auth code for --force-app-mode. ↪ |
--app-mode-oauth-token ⊗ | Value of OAuth2 refresh token for --force-app-mode. ↪ |
--app-mode-oem-manifest ⊗ | Path for app's OEM manifest file. ↪ |
--app-shell-allow-roaming ⊗ | Allow roaming in the cellular network. ↪ |
--app-shell-host-window-size ⊗ | Size for the host window to create (i.e. "800x600"). ↪ |
--app-shell-preferred-network ⊗ | SSID of the preferred WiFi network. ↪ |
--app-shell-refresh-token ⊗ | Refresh token for identity API calls for the current user. Used for testing. ↪ |
--app-shell-user ⊗ | User email address of the current user. ↪ |
--apple ⊗ | No description ↪ |
--apps-gallery-download-url ⊗ | The URL that the webstore APIs download extensions from. Note: the URL must contain one '%s' for the extension ID. ↪ |
--apps-gallery-update-url ⊗ | The update url used by gallery/webstore extensions. ↪ |
--apps-gallery-url ⊗ | The URL to use for the gallery link in the app launcher. ↪ |
Prevents Chrome from quitting when Chrome Apps are open. ↪ | |
--artifacts-dir ⊗ | Screenshot testing: specifies the directoru where artifacts will be stored. ↪ |
--ash-animate-from-boot-splash-screen ⊗ | Enables an animated transition from the boot splash screen (Chrome logo on a white background) to the login screen. Implies |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in conjunction with |kDisableBootAnimation| (since the transition begins at the same time as the white/grayscale login screen animation). ↪ |
Force browser tests to run in Ash/Metro on Windows 8. ↪ | |
--ash-copy-host-background-at-boot ⊗ | Copies the host window's content to the system background layer at startup. Can make boot slightly slower, but also hides an even-longer awkward period where we display a white background if the login wallpaper takes a long time to load. ↪ |
--ash-debug-shortcuts ⊗ | Enable keyboard shortcuts useful for debugging. ↪ |
--ash-disable-maximize-mode-window-backdrop ⊗ | Disables the window backdrops normally used in maximize mode (TouchView). ↪ |
Disable the support for WebContents to lock the screen orientation. ↪ | |
--ash-disable-stable-overview-order ⊗ | Enables / disables a stable order between overview sessions, independent of the MRU order which attempts to preserve relative window positions. ↪ |
--ash-disable-system-sounds ⊗ | When this flag is set, system sounds will not be played. ↪ |
--ash-disable-touch-exploration-mode ⊗ | Disable the Touch Exploration Mode. Touch Exploration Mode will no longer be turned on automatically when spoken feedback is enabled when this flag is set. ↪ |
Enables fullscreen app list if Ash is in maximize mode. ↪ | |
Enables key bindings to scroll magnified screen. ↪ | |
--ash-enable-mirrored-screen ⊗ | Enables mirrored screen. ↪ |
--ash-enable-software-mirroring ⊗ | Enables software based mirroring. ↪ |
--ash-enable-stable-overview-order ⊗ | No description ↪ |
--ash-enable-system-sounds ⊗ | When this flag is set, system sounds will be played whether the ChromeVox is enabled or not. ↪ |
--ash-enable-touch-view-testing ⊗ | Enables touch view testing. TODO(skuhne): Remove TOGGLE_TOUCH_VIEW_TESTING accelerator once this flag is removed. ↪ |
Enables unified desktop mode. ↪ | |
Force Ash to open its root window on the desktop, even on Windows 8 where it would normally end up in metro. ↪ | |
--ash-hide-notifications-for-factory ⊗ | Hides notifications that are irrelevant to Chrome OS device factory testing, such as battery level updates. ↪ |
--ash-host-window-bounds ⊗ | Sets a window size, optional position, and optional scale factor. "1024x768" creates a window of size 1024x768. "100+200-1024x768" positions the window at 100,200. "1024x768*2" sets the scale factor to 2 for a high DPI display. ↪ |
--ash-secondary-display-layout ⊗ | Specifies the layout mode and offsets for the secondary display for testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display is positioned on the right with -100 offset. (above than primary) ↪ |
--ash-touch-hud ⊗ | Enables the heads-up display for tracking touch points. ↪ |
--ash-use-first-display-as-internal ⊗ | Uses the 1st display in --ash-host-window-bounds as internal display. This is for debugging on linux desktop. ↪ |
--ash-webui-init ⊗ | When wallpaper boot animation is not disabled this switch is used to override OOBE/sign in WebUI init type. Possible values: parallel|postpone. Default: parallel. ↪ |
--audio-buffer-size ⊗ | Allow users to specify a custom buffer size for debugging purpose. ↪ |
--audio-modem-dump-tokens-to-dir ⊗ | Directory to dump encoded tokens to, for debugging. If empty (the default), tokens are not dumped. If invalid (not a writable directory), Chrome will crash! ↪ |
--audio-modem-enable-audible-broadcast⊗ | Allow broadcast of audible audio tokens. Defaults to true. ↪ |
--audio-modem-enable-inaudible-broadcast ⊗ | Allow broadcast of inaudible audio tokens. Defaults to true. ↪ |
--aura-legacy-power-button ⊗ | (Most) Chrome OS hardware reports ACPI power button releases correctly. Standard hardware reports releases immediately after presses. If set, we lock the screen or shutdown the system immediately in response to a press instead of displaying an interactive animation. ↪ |
--auth-ext-path ⊗ | Enables overriding the path for the default authentication extension. ↪ |
--auth-server-whitelist ⊗ | Whitelist for Negotiate Auth servers ↪ |
Android authentication account type for SPNEGO authentication ↪ | |
--auto ⊗ | The values the kTouchEvents switch may have, as in --touch-events=disabled. auto: enabled at startup when an attached touchscreen is present. ↪ |
--auto-select-desktop-capture-source ⊗ | This flag makes Chrome auto-select the provided choice when an extension asks permission to start desktop capture. Should only be used for tests. For instance, --auto-select-desktop-capture-source="Entire screen" will automatically select to share the entire screen in English locales. ↪ |
--blink-platform-log-channels ⊗ | Choose which logging channels in blink platform to activate. See Logging.cpp in blink's Source/platform for a list of available channels. ↪ |
--blink-settings ⊗ | Set blink settings. Format is <name>[=<value],<name>[=<value>],... The names are declared in Settings.in. For boolean type, use "true", "false", or omit '=<value>' part to set to true. For enum type, use the int value of the enum value. Applied after other command line flags and prefs. ↪ |
--bootstrap ⊗ | Values for the kExtensionContentVerification flag. See ContentVerifierDelegate::Mode for more explanation. ↪ |
--browser-subprocess-path ⊗ | Path to the exe to run for the renderer and plugin subprocesses. ↪ |
--browser-test ⊗ | Tells Content Shell that it's running as a content_browsertest. ↪ |
--bwsi ⊗ | Indicates that the browser is in "browse without sign-in" (Guest session) mode. Should completely disable extensions, sync and bookmarks. ↪ |
--bypass-app-banner-engagement-checks⊗ | This flag causes the user engagement checks for showing app banners to be bypassed. It is intended to be used by developers who wish to test that their sites otherwise meet the criteria needed to show app banners. ↪ |
--canvas-msaa-sample-count ⊗ | The number of MSAA samples for canvas2D. Requires MSAA support by GPU to have an effect. 0 disables MSAA. ↪ |
--cc-layer-tree-test-no-timeout ⊗ | Prevents the layer tree unit tests from timing out. ↪ |
--cc-rebaseline-pixeltests ⊗ | Makes pixel tests write their output instead of read it. ↪ |
--cellular-only ⊗ | No description ↪ |
--certificate-transparency-log ⊗ | Certificate Transparency: Uses the provided log(s) for checking Signed Certificate Timestamps provided with certificates. The switch's value is: log_description:log_key:log_url,log_description:log_key:log_url,... where log_description is a textual description of the log. log_key is a Base64'd DER-encoded SubjectPublicKeyInfo of the log's public key. log_url is a URL for the log, excluding the schema (which is always assumed to be HTTPS as required by RFC6962). Multiple logs can be specified by repeating description:key pairs, separated by a comma. ↪ |
--channel ⊗ | The value of this switch tells the child process which IPC channel the browser expects to use to communicate with it. ↪ |
--check-for-update-interval ⊗ | How often (in seconds) to check for updates. Should only be used for testing purposes. ↪ |
--check-layout-test-sys-deps ⊗ | Check whether all system dependencies for running layout tests are met. ↪ |
--child-process ⊗ | Used internally by the main process to indicate that a new process should be a child process. Takes the absolute path to the mojo application to load as an argument. Not for user use. ↪ |
--child-wallpaper-large ⊗ | Default wallpaper to use for kids accounts (as paths to trusted, non-user-writable JPEG files). ↪ |
--child-wallpaper-small ⊗ | No description ↪ |
--ChromeOSMemoryPressureHandling ⊗ | The memory pressure thresholds selection which is used to decide whether and when a memory pressure event needs to get fired. ↪ |
--cipher-suite-blacklist ⊗ | Comma-separated list of SSL cipher suites to disable. ↪ |
--clear-data-reduction-proxy-data-savings⊗ | Clear data savings on Chrome startup. ↪ |
--clear-token-service ⊗ | Clears the token service before using it. This allows simulating the expiration of credentials during testing. ↪ |
--cloud-devices-url ⊗ | The URL of the cloud devices service to use. ↪ |
--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-print-ticket ⊗ | Used with kCloudPrintFile to specify a JSON print ticket for the resulting print job. Defaults to null if unspecified. ↪ |
--cloud-print-setup-proxy ⊗ | Setup cloud print proxy for provided printers. This does not start service or register proxy for autostart. ↪ |
--cloud-print-url ⊗ | 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. Used for testing. ↪ |
--cloud-print-xmpp-endpoint ⊗ | The XMPP endpoint the cloud print service will use. Only used if the cloud print service has been enabled. Used for testing. ↪ |
--compensate-for-unstable-pinch-zoom ⊗ | Enable compensation for unstable pinch zoom. Some touch screens display significant amount of wobble when moving a finger in a straight line. This makes two finger scroll trigger an oscillating pinch zoom. See crbug.com/394380 for details. ↪ |
--compile-shader-always-succeeds ⊗ | Always return success when compiling a shader. Linking will still fail. ↪ |
--component-updater ⊗ | Comma-separated options to troubleshoot the component updater. Only valid for the browser process. ↪ |
--connect-to-metro-viewer ⊗ | On Windows only: requests that Chrome connect to the running Metro viewer process. ↪ |
--connectivity-check-url ⊗ | Url for network connectivity checking. Default is "https://clients3.google.com/generate_204". ↪ |
--conservative ⊗ | No description ↪ |
--console ⊗ | No description ↪ |
--consumer-device-management-url ⊗ | Specifies the URL of the consumer device management backend. ↪ |
--content-handlers ⊗ | Comma separated list like: text/html,mojo:html_viewer,application/bravo,https://abarth.com/bravo ↪ |
--content-image-texture-target ⊗ | Texture target for CHROMIUM_image backed content textures. ↪ |
--content-shell-host-window-size ⊗ | Size for the content_shell's host window (i.e. "800x600"). ↪ |
--controller ⊗ | No description ↪ |
--copresence-server ⊗ | Address for calls to the Copresence server (via Apiary). Defaults to https://www.googleapis.com/copresence/v2/copresence. ↪ |
--copresence-tracing-token ⊗ | Apiary tracing token for calls to the Copresence server. ↪ |
--crash-dumps-dir ⊗ | The directory breakpad should store minidumps in. ↪ |
--crash-on-failure ⊗ | When specified to "enable-leak-detection" command-line option, causes the leak detector to cause immediate crash when found leak. ↪ |
--crash-on-hang-threads ⊗ | Comma-separated list of BrowserThreads that cause browser process to crash if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the list of BrowserThreads that are supported. For example: --crash-on-hang-threads=UI:3:18,IO:3:18 --> Crash the browser if UI or IO is not responsive for 18 seconds and the number of browser threads that are responding is less than or equal to 3. ↪ |
--crash-test ⊗ | Causes the browser process to crash on startup. ↪ |
A process type (switches::kProcessType) that indicates chrome.exe is being launched as crashpad_handler. This is only used on Windows. We bundle the handler into chrome.exe on Windows because there is high probability of a "new" .exe being blocked or interfered with by application firewalls, AV software, etc. On other platforms, crashpad_handler is a standalone executable. ↪ | |
--create-browser-on-startup-for-tests ⊗ | Some platforms like ChromeOS default to empty desktop. Browser tests may need to add this switch so that at least one browser instance is created on startup. TODO(nkostylev): Investigate if this switch could be removed. (http://crbug.com/148675) ↪ |
--cros-region ⊗ | Forces CrOS region value. ↪ |
--cros-regions-mode ⊗ | Control regions data load: "" - default "override" - regions data is read first "hide" - VPD values are hidden ↪ |
--cryptauth-http-host ⊗ | Overrides the default URL for Google APIs (https://www.googleapis.com) used by CryptAuth. ↪ |
--custom-launcher-page ⊗ | Specifies the chrome-extension:// URL for the contents of an additional page added to the experimental app launcher. ↪ |
本文转载自异步社区
原文链接:
https://www.epubit.com/articleDetails?id=N5b90f55b-6312-48ed-9829-592eb31e0dc2 |
- 点赞
- 收藏
- 关注作者
评论(0)