Chrome的启动参数集锦(八)
--ui-enable-zero-copy ⊗ | No description ↪ |
--ui-prioritize-in-gpu-process ⊗ | Prioritizes the UI's command stream in the GPU process ↪ |
--ui-show-layer-animation-bounds ⊗ | No description ↪ |
--ui-show-layer-borders ⊗ | No description ↪ |
--ui-show-paint-rects ⊗ | No description ↪ |
--ui-show-property-changed-rects ⊗ | No description ↪ |
--ui-show-replica-screenspace-rects ⊗ | No description ↪ |
--ui-show-screenspace-rects ⊗ | No description ↪ |
--ui-show-surface-damage-rects ⊗ | No description ↪ |
--unicast-respond ⊗ | No description ↪ |
--uninstall ⊗ | No description ↪ |
--unlimited-storage ⊗ | Overrides per-origin quota settings to unlimited storage for any apps/origins. This should be used only for testing purpose. ↪ |
--unsafely-treat-insecure-origin-as-secure⊗ | Treat given (insecure) origins as secure origins. Multiple origins can be supplied. Has no effect unless --user-data-dir is also supplied. Example: --unsafely-treat-insecure-origin-as-secure=http://a.test,http://b.test --user-data-dir=/test/only/profile/dir ↪ |
--url-mappings ⊗ | Specifies a set of mappings to apply when resolving URLs. The value is a set of comma-separated mappings, where each mapping consists of a pair of URLs giving the to/from URLs to map. For example, 'a=b,c=d' contains two mappings, the first maps 'a' to 'b' and the second 'c' to 'd'. ↪ |
Use Android Midi API for WebMIDI ↪ | |
--use-angle ⊗ | Select which ANGLE backend to use. Options are: default: Attempts several ANGLE renderers until one successfully initializes, varying ES support by platform. d3d9: Legacy D3D9 renderer, ES2 only. d3d11: D3D11 renderer, ES2 and ES3. warp: D3D11 renderer using software rasterization, ES2 and ES3. gl: Desktop GL renderer, ES2 and ES3. gles: GLES renderer, ES2 and ES3. ↪ |
Use CRAS, the ChromeOS audio server. ↪ | |
--use-fake-device-for-media-stream ⊗ | Use fake device for Media Stream to replace actual camera and microphone. ↪ |
--use-fake-ui-for-media-stream ⊗ | Bypass the media stream infobar by selecting the default device for media streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream. ↪ |
--use-file-for-fake-audio-capture ⊗ | Play a .wav file as the microphone. Note that for WebRTC calls we'll treat the bits as if they came from the microphone, which means you should disable audio processing (lest your audio file will play back distorted). The input file is converted to suit Chrome's audio buses if necessary, so most sane .wav files should work. ↪ |
--use-file-for-fake-video-capture ⊗ | Use an .y4m file to play as the webcam. See the comments in media/capture/video/file_video_capture_device.h for more details. ↪ |
--use-gl ⊗ | Select which implementation of GL the GPU process should use. Options are: desktop: whatever desktop OpenGL the user has installed (Linux and Mac default). egl: whatever EGL / GLES2 the user has installed (Windows default - actually ANGLE). osmesa: The OSMesa software renderer. ↪ |
--use-gpu-in-tests ⊗ | Use hardware gpu, if available, for tests. ↪ |
--use-gpu-memory-buffers-for-capture ⊗ | Use GpuMemoryBuffers for Video Capture when this is an option for the device. Experimental, see http://crbug.com/503835 and http://crbug.com/440843. ↪ |
--use-mobile-user-agent ⊗ | Set when Chromium should use a mobile user agent. ↪ |
No description ↪ | |
--use-mus-in-renderer ⊗ | Use the Mandoline UI Service in the Chrome render process. ↪ |
--use-normal-priority-for-tile-task-worker-threads ⊗ | Use normal priority for tile task worker threads. Otherwise they may be run at background priority on some platforms. ↪ |
--use-simple-cache-backend ⊗ | Uses experimental simple cache backend if possible. ↪ |
--use-spdy ⊗ | Uses Spdy for the transport protocol instead of HTTP. This is a temporary testing flag. ↪ |
--use-surfaces ⊗ | Use the new surfaces system to handle compositor delegation. ↪ |
--use-temporary-user-data-dir ⊗ | When this is set, we create a temporary user data dir for the process, and add a flag so kUserDataDir points to it. ↪ |
--use-updater ⊗ | Pull apps via component updater, rather than using default local resolution to find them. ↪ |
--user-agent ⊗ | A string used to override the default user agent with a custom one. ↪ |
--user-data-dir ⊗ | Specifies the user data directory. This is the one directory which stores all persistent data. ↪ |
--utility ⊗ | Causes the process to run as a utility subprocess. ↪ |
--utility-allowed-dir ⊗ | The utility process is sandboxed, with access to one directory. This flag specifies the directory that can be accessed. ↪ |
--utility-cmd-prefix ⊗ | The contents of this flag are prepended to the utility process command line. Useful values might be "valgrind" or "xterm -e gdb --args". ↪ |
--utility-enable-mdns ⊗ | Allows MDns to access network in sandboxed process. ↪ |
--utility-run-elevated ⊗ | No description ↪ |
--v ⊗ | Gives the default maximal active V-logging level; 0 is the default. Normally positive values are used for V-logging levels. ↪ |
--v8-cache-options ⊗ | Set options to cache V8 data. (off, preparse data, or code) ↪ |
--v8-natives-passed-by-fd ⊗ | Signals that the V8 natives file has been transfered to the child process by a file descriptor. ↪ |
--v8-pac-mojo-in-process ⊗ | Enables using an in-process Mojo service for the v8 proxy resolver. ↪ |
--v8-pac-mojo-out-of-process ⊗ | Enables using an out-of-process Mojo service for the v8 proxy resolver. ↪ |
--v8-snapshot-passed-by-fd ⊗ | Signals that the V8 startup snapshot file has been transfered to the child process by a file descriptor.↪ |
--validate-crx ⊗ | Examines a .crx for validity and prints the result. ↪ |
--validate-input-event-stream ⊗ | In debug builds, asserts that the stream of input events is valid. ↪ |
--variations-server-url ⊗ | Specifies a custom URL for the server which reports variation data to the client. Specifying this switch enables the Variations service on unofficial builds. See variations_service.cc. ↪ |
--version ⊗ | No description ↪ |
--video-image-texture-target ⊗ | Texture target for CHROMIUM_image backed video frame textures. ↪ |
--video-threads ⊗ | Set number of threads to use for video decoding. ↪ |
--video-underflow-threshold-ms ⊗ | Allows clients to override the threshold for when the media renderer will declare the underflow state for the video stream when audio is present. TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish. ↪ |
Requests that Chrome launch the Metro viewer process via the given appid (which is assumed to be registered as default browser) and synchronously connect to it. ↪ | |
--vmodule ⊗ | Gives the per-module maximal V-logging levels to override the value given by --v. E.g. "my_module=2,foo*=3" would change the logging level for all code in source files "my_module.*" and "foo*.*" ("-inl" suffixes are also disregarded for this matching). Any pattern containing a forward or backward slash will be tested against the whole pathname and not just the module. E.g., "*/foo/bar/*=2" would change the logging level for all code in source files under a "foo/bar" directory.↪ |
--wait-for-debugger ⊗ | Will wait for 60 seconds for a debugger to come to attach to the process. ↪ |
--wait-for-debugger-children ⊗ | Will add kWaitForDebugger to every child processes. If a value is passed, it will be used as a filter to determine if the child process should have the kWaitForDebugger flag passed on or not. ↪ |
Waits for the given handle to be signaled before relaunching metro Chrome on Windows 8 and higher. ↪ | |
--wake-on-wifi-packet ⊗ | Enables wake on wifi packet feature, which wakes the device on the receipt of network packets from whitelisted sources. ↪ |
--wallet-secure-service-url ⊗ | Secure service URL for Online Wallet service. Used as the base url to escrow credit card numbers. ↪ |
--wallet-service-url ⊗ | Service URL for Online Wallet service. Used as the base url for Online Wallet API calls. ↪ |
--wallet-service-use-sandbox ⊗ | Use the sandbox Online Wallet service URL (for developer testing). ↪ |
--warp ⊗ | No description ↪ |
Number of buffers to use for WaveOut. ↪ | |
Renderer process parameter for WebRTC Stun probe trial to determine the interval. Please see SetupStunProbeTrial in chrome_browser_field_trials_desktop.cc for more detail. ↪ | |
--webview-sandboxed-renderer ⊗ | No description ↪ |
--whitelisted-extension-id ⊗ | Adds the given extension ID to all the permission whitelists. ↪ |
--win-jumplist-action ⊗ | Specifies which category option was clicked in the Windows Jumplist that resulted in a browser startup. ↪ |
Color bit depth of the main window created in the browser process and matches XWindowAttributes.depth. ↪ | |
--window-position ⊗ | Specify the initial window position: --window-position=x,y ↪ |
--window-size ⊗ | Specify the initial window size: --window-size=w,h ↪ |
Indicates that chrome was launched to service a search request in Windows 8. ↪ | |
--winhttp-proxy-resolver ⊗ | Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to use Chromium's network stack to fetch, and V8 to evaluate. ↪ |
--wm-window-animations-disabled ⊗ | If present animations are disabled. ↪ |
--zygote ⊗ | Causes the process to run as a renderer zygote. ↪ |
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 ENABLE_TOPCHROME_MD must be defined.
2. The constant ENABLE_PLUGINS must be defined.
3. The constant FULL_SAFE_BROWSING must be defined.
4. The constants OS_FREEBSD, OS_LINUX and OS_SOLARIS must be defined.
5. The constant OS_MACOSX must be defined.
6. The constant OS_WIN must be defined.
7. The constant OS_CHROMEOS must be defined.
8. The constant OS_ANDROID must be defined.
9. The constant OFFICIAL_BUILD must not be defined, and the constant ENABLE_PRINT_PREVIEW must be defined.
10. The constant OS_IOS must not be defined, and the constant OS_MACOSX must be defined.
11. The constant ENABLE_SPELLCHECK must be defined.
12. The constant ENABLE_TASK_MANAGER must be defined.
13. The constant ENABLE_WEBRTC must be defined.
14. The constant OS_CHROMEOS must not be defined.
15. The constant NDEBUG must be defined.
16. The constant OS_POSIX must be defined.
17. The constants OS_ANDROID and OS_IOS must not be defined.
18. The constant OS_CHROMEOS must not be defined, and the constant OS_LINUX must be defined.
19. The constant ENABLE_WAYLAND_SERVER must be defined.
20. The constant ENABLE_IPC_FUZZER must be defined.
21. The constant GOOGLE_CHROME_BUILD must not be defined.
22. The constant USE_ASH must be defined.
23. The constants OS_CHROMEOS and OS_MACOSX must not be defined, and the constant OS_POSIX must be defined.
24. The constant CHROMIUM_BUILD must be defined.
25. The constants USE_OZONE and USE_X11 must be defined.
26. The constant OS_LINUX must be defined.
27. The constant USE_CRAS must be defined.
本文转载自异步社区
原文链接:
https://www.epubit.com/articleDetails?id=N5b90f55b-6312-48ed-9829-592eb31e0dc2 |
- 点赞
- 收藏
- 关注作者
评论(0)