Chrome的启动参数集锦(六)
--javascript-harmony ⊗ | Enables experimental Harmony (ECMAScript 6) features. ↪ |
--js-flags ⊗ | Specifies the flags passed to JS engine ↪ |
--keep-alive-for-test ⊗ | Used for testing - keeps browser alive after last browser window closes. ↪ |
--kiosk ⊗ | Enable Kiosk mode. ↪ |
--kiosk-printing ⊗ | Print automatically in kiosk mode. |kKioskMode| must be set as well. See http://crbug.com/31395. ↪ |
--lang ⊗ | The language file that we want to try to open. Of the form language[-country] where language is the 2 letter code from ISO-639. ↪ |
--last-launched-app ⊗ | Pass the app id information to the renderer process, to be used for logging. last-launched-app should be the app that just launched and is spawning the renderer. ↪ |
--learning ⊗ | Speculative resource prefetching will only learn about resources that need to be prefetched but will not prefetch them. ↪ |
--load-and-launch-app ⊗ | Loads an app from the specified directory and launches it. ↪ |
--load-apps ⊗ | Path to a comma-separated list of apps to load at startup. The first app in the list will be launched. ↪ |
--load-component-extension ⊗ | Comma-separated list of directories with component extensions to load. ↪ |
--load-extension ⊗ | Loads an extension from the specified directory. ↪ |
--load-plugin ⊗ | Load an NPAPI plugin from the specified path. ↪ |
--local-heuristics-only-for-password-generation ⊗ | Removes the requirement that we recieved a ping from the autofill servers and that the user doesn't have the given form blacklisted. Used in testing. ↪ |
Enables a live-reload for local NTP resources. This only works when Chrome is running from a Chrome source directory. ↪ | |
--log-gpu-control-list-decisions ⊗ | Logs GPU control list decisions when enforcing blacklist rules. ↪ |
--log-level ⊗ | Sets the minimum log level. Valid values are from 0 to 3: INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. ↪ |
--log-net-log ⊗ | Enables saving net log events to a file and sets the file name to use. ↪ |
--log-plugin-messages ⊗ | Make plugin processes log their sent and received messages to VLOG(1). ↪ |
--login-manager ⊗ | Enables Chrome-as-a-login-manager behavior. ↪ |
--login-profile ⊗ | Specifies the profile to use once a chromeos user is logged in. This parameter is ignored if user goes through login screen since user_id hash defines which profile directory to use. In case of browser restart within active session this parameter is used to pass user_id hash for primary user. ↪ |
--login-user ⊗ | Specifies the user which is already logged in. ↪ |
--lso-url ⊗ | No description ↪ |
--ltr ⊗ | No description ↪ |
--main-frame-resizes-are-orientation-changes ⊗ | Resizes of the main frame are caused by changing between landscape and portrait mode (i.e. Android) so the page should be rescaled to fit. ↪ |
--make-default-browser ⊗ | Makes Chrome default browser ↪ |
--managed-user-id ⊗ | Sets the supervised user ID for any loaded or newly created profile to the given value. Pass an empty string to mark the profile as non-supervised. Used for testing. ↪ |
--managed-user-sync-token ⊗ | Used to authenticate requests to the Sync service for supervised users. Setting this switch also causes Sync to be set up for a supervised user. ↪ |
--map-origin ⊗ | Specify origin to map to base url. See url_resolver.cc for details. Can be used multiple times. ↪ |
--mark-non-secure-as ⊗ | Use to opt-in to marking HTTP as non-secure. ↪ |
Material design mode for the |kTopChromeMD| switch. ↪ | |
--material-design-ink-drop-animation-speed ⊗ | Defines the speed of Material Design visual feedback animations. ↪ |
Material design hybrid mode for the |kTopChromeMD| switch. Targeted for mouse/touch hybrid devices. ↪ | |
Override the maximum framerate as can be specified in calls to getUserMedia. This flag expects a value. Example: --max-gum-fps=17.5 ↪ | |
--max-untiled-layer-height ⊗ | Sets the width and height above which a composited layer will get tiled. ↪ |
--max-untiled-layer-width ⊗ | No description ↪ |
--media-cache-size ⊗ | Forces the maximum disk space to be used by the media cache, in bytes. ↪ |
--media-router ⊗ | Enables Media Router. ↪ |
--memory-metrics ⊗ | Sample memory usage with high frequency and store the results to the Renderer.Memory histogram. Used in memory tests. ↪ |
--memory-pressure-off ⊗ | No description ↪ |
--memory-pressure-thresholds ⊗ | No description ↪ |
Sets the free memory thresholds below which the system is considered to be under moderate and critical memory pressure. Used in the browser process, and ignored if invalid. Specified as a pair of comma separated integers. See base/win/memory_pressure_monitor.cc for defaults. ↪ | |
--message-center-changes-while-open ⊗ | Flag to enable or disable notification changes while the message center opens. This flag will be removed once the feature gets stable. ↪ |
--message-loop-histogrammer ⊗ | Enables 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.↪ |
This is how the metrics client ID is passed from the browser process to its children. With Crashpad, the metrics client ID is distinct from the crash client ID. ↪ | |
--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. ↪ |
Triggers migration of user data directory to another directory specified as a parameter. The migration is done under singleton lock, and sanity checks are made to avoid corrupting the profile. The browser exits after migration is complete. ↪ | |
--mock ⊗ | No description ↪ |
--monitoring-destination-id ⊗ | Allows setting a different destination ID for connection-monitoring GCM messages. Useful when running against a non-prod management server. ↪ |
--mute-audio ⊗ | Mutes audio sent to the audio device so it is not audible during automated testing. ↪ |
--nacl-broker ⊗ | Value for --type that causes the process to run as a NativeClient broker (used for launching NaCl loader processes on 64-bit Windows). ↪ |
--nacl-dangerous-no-sandbox-nonsfi ⊗ | Disable sandbox even for non SFI mode. This is particularly unsafe as non SFI NaCl heavily relies on the seccomp sandbox. ↪ |
--nacl-debug-mask ⊗ | Uses NaCl manifest URL to choose whether NaCl program will be debugged by debug stub. Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses the same syntax as patterns in Chrome extension manifest. The only difference is that * scheme matches all schemes instead of matching only http and https. If the value doesn't start with !, a program will be debugged if manifest URL matches any pattern. If the value starts with !, a program will be debugged if manifest URL does not match any pattern. ↪ |
--nacl-gdb ⊗ | Native Client GDB debugger that will be launched automatically when needed. ↪ |
--nacl-gdb-script ⊗ | GDB script to pass to the nacl-gdb debugger at startup. ↪ |
--nacl-loader ⊗ | Value for --type that causes the process to run as a NativeClient loader for SFI mode. ↪ |
--nacl-loader-nonsfi ⊗ | Value for --type that causes the process to run as a NativeClient loader for non SFI mode. ↪ |
--net-log-capture-mode ⊗ | Sets the granularity of events to capture in the network log. The mode can be set to one of the following values: "Default" "IncludeCookiesAndCredentials" "IncludeSocketBytes" See the functions of the corresponding name in net_log_capture_mode.h for a description of their meaning. ↪ |
--netifs-to-ignore ⊗ | List of network interfaces to ignore. Ignored interfaces will not be used for network connectivity. ↪ |
The telephony region (ISO country code) to use in phone number detection. ↪ | |
--neutral ⊗ | No description ↪ |
--new-profile-management ⊗ | Enables new profile management system, including lock mode. ↪ |
--new-window ⊗ | Launches URL in new browser window. ↪ |
--NewProfileManagement ⊗ | No description ↪ |
--no-announcement ⊗ | No description ↪ |
--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-displaying-insecure-content ⊗ | By default, an https page can load images, fonts or frames from an http page. This switch overrides this to block this lesser mixed-content problem. ↪ |
--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 ⊗ | Skip First Run tasks, whether or not it's actually the First Run. Overridden by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't prevent first run from occuring the next time chrome is launched without this flag. ↪ |
--no-managed-user-acknowledgment-check ⊗ | Disables checking whether we received an acknowledgment when registering a supervised user. Also disables the timeout during registration that waits for the ack. Useful when debugging against a server that does not support notifications. ↪ |
Whether or not the browser should warn if the profile is on a network share. This flag is only relevant for Windows currently. ↪ | |
--no-pings ⊗ | Don't send hyperlink auditing pings ↪ |
--no-proxy-server ⊗ | Don't use a proxy server, always make direct connections. Overrides any other proxy server flags that are passed. ↪ |
--no-referrers ⊗ | Don't send HTTP-Referer headers. ↪ |
--no-sandbox ⊗ | Disables the sandbox for debugging. (Why the Mojo prefix on the constant? Because otherwise we conflict with content.) ↪ |
--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). ↪ |
--no-wifi ⊗ | Disable features that require WiFi management. ↪ |
--noerrdialogs ⊗ | Suppresses all error dialogs when present. ↪ |
--non-secure ⊗ | No description ↪ |
--none ⊗ | No description ↪ |
Switch to an existing tab for a suggestion opened from the New Tab Page. ↪ | |
--num-pac-threads ⊗ | Specifies the maximum number of threads to use for running the Proxy Autoconfig (PAC) script. ↪ |
--num-raster-threads ⊗ | Number of worker threads used to rasterize content. ↪ |
--oauth2-client-id ⊗ | No description ↪ |
--oauth2-client-secret ⊗ | No description ↪ |
--off ⊗ | No description ↪ |
--on ⊗ | No description ↪ |
--oobe-bootstrapping-master ⊗ | Indicates that if we should start bootstrapping Master/Slave OOBE. ↪ |
--oobe-bootstrapping-slave ⊗ | No description ↪ |
--oobe-guest-session ⊗ | Indicates that a guest session has been started before OOBE completion. ↪ |
--oobe-skip-postlogin ⊗ | Skips all other OOBE pages after user login. ↪ |
--oobe-timer-interval ⊗ | Interval at which we check for total time on OOBE. ↪ |
--oopif-always-create-new-frame-tree ⊗ | No description ↪ |
No description ↪ | |
--opengraph ⊗ | No description ↪ |
--origin-to-force-quic-on ⊗ | Force use of QUIC for requests to the specified origin. ↪ |
--original-process-start-time ⊗ | The time that a new chrome process which is delegating to an already running chrome process started. (See ProcessSingleton for more details.) ↪ |
--osmesa ⊗ | No description ↪ |
--override ⊗ | No description ↪ |
--override-metrics-upload-url ⊗ | Override the URL to which metrics logs are sent for debugging. ↪ |
--override-plugin-power-saver-for-testing⊗ | Override the behavior of plugin throttling for testing. By default the throttler is only enabled for a hard-coded list of plugins. Set the value to 'ignore-list' to ignore the hard-coded list. Set the value to 'always' to always throttle every plugin instance. ↪ |
--override-use-gl-with-osmesa-for-tests ⊗ | Forces the use of OSMesa instead of hardware gpu. ↪ |
--overscroll-history-navigation ⊗ | Controls the behavior of history navigation in response to horizontal overscroll. Set the value to '0' to disable. Set the value to '1' to enable the behavior where pages slide in and out in response to the horizontal overscroll gesture and a screenshot of the target page is shown. Set the value to '2' to enable the simplified overscroll UI where a navigation arrow slides in from the side of the screen in response to the horizontal overscroll gesture. Defaults to '1'. ↪ |
--ozone-dump-file ⊗ | Specify location for image dumps. ↪ |
--ozone-initial-display-bounds ⊗ | Specifies the size of the primary display at initialization. ↪ |
--ozone-initial-display-physical-size-mm ⊗ | Specifies the physical display size in millimeters. ↪ |
--ozone-platform ⊗ | Specify ozone platform implementation to use. ↪ |
--ozone-test-single-overlay-support ⊗ | Enable support for a single overlay plane. ↪ |
--pack-extension ⊗ | Packages an extension to a .crx installable file from a given directory. ↪ |
--pack-extension-key ⊗ | Optional PEM private key to use in signing packaged .crx. ↪ |
--parent-profile ⊗ | Specifies the path to the user data folder for the parent profile. ↪ |
Specifies which password store to use (detect, default, gnome, kwallet). ↪ | |
--permission-request-api-scope ⊗ | Development flag for permission request API. This flag is needed until the API is finalized. TODO(bauerb): Remove when this flag is not needed anymore. ↪ |
--permission-request-api-url ⊗ | Development flag for permission request API. This flag is needed until the API is finalized. TODO(bauerb): Remove when this flag is not needed anymore. ↪ |
--plugin ⊗ | Causes the process to run as a plugin subprocess. ↪ |
--plugin-launcher ⊗ | Specifies a command that should be used to launch the plugin process. Useful for running the plugin process through purify or quantify. Ex: --plugin-launcher="path\to\purify /Run=yes" ↪ |
--plugin-path ⊗ | Tells the plugin process the path of the plugin to load ↪ |
--plugin-startup-dialog ⊗ | Causes the plugin process to display a dialog on launch. ↪ |
--power-stub ⊗ | Specifies power stub behavior: 'cycle=2' - Cycles power states every 2 seconds. See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details. ↪ |
--ppapi ⊗ | Argument to the process type that indicates a PPAPI plugin process type. ↪ |
--ppapi-broker ⊗ | Argument to the process type that indicates a PPAPI broker process type. ↪ |
--ppapi-flash-args ⊗ | "Command-line" arguments for the PPAPI Flash; used for debugging options. ↪ |
--ppapi-flash-path ⊗ | Use the PPAPI (Pepper) Flash found at the given path. ↪ |
--ppapi-flash-version ⊗ | Report the given version for the PPAPI (Pepper) Flash. The version should be numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it defaults to "10.2.999.999". ↪ |
--ppapi-in-process ⊗ | Runs PPAPI (Pepper) plugins in-process. ↪ |
--ppapi-plugin-launcher ⊗ | Like kPluginLauncher for PPAPI plugins. ↪ |
--ppapi-startup-dialog ⊗ | Causes the PPAPI sub process to display a dialog on launch. Be sure to use --no-sandbox as well or the sandbox won't allow the dialog to display. ↪ |
--precache-config-settings-url ⊗ | The URL that provides the PrecacheConfigurationSettings proto. ↪ |
--precache-manifest-url-prefix ⊗ | Precache manifests will be served from URLs with this prefix. ↪ |
--predictable-app-filenames ⊗ | If set apps downloaded are saved in with a predictable filename, to help remote debugging: when gdb is used through gdbserver, it needs to be able to find locally any loaded library. For this, gdb use the filename of the library. When using this flag, the application are named with the sha256 of their content. ↪ |
Triggers prerendering of search base page to prefetch results for the typed omnibox query. Only has an effect when prerender is enabled. ↪ | |
--prerender ⊗ | Controls speculative prerendering of pages, and content prefetching. Both are dispatched from <link rel=prefetch href=...> elements. ↪ |
--prerender-from-omnibox ⊗ | Triggers prerendering of pages from suggestions in the omnibox. Only has an effect when Instant is either disabled or restricted to search, and when prerender is enabled. ↪ |
--previous-app ⊗ | previous-app should be the app that was running when last-launched-app started. ↪ |
--primary ⊗ | Values for the kShowSavedCopy flag. ↪ |
--privet-ipv6-only ⊗ | Use IPv6 only for privet HTTP. ↪ |
--process-per-site ⊗ | Runs a single process for each site (i.e., group of pages from the same registered domain) the user visits. We default to using a renderer process for each site instance (i.e., group of pages from the same registered domain with script connections to each other). ↪ |
--process-per-tab ⊗ | Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own renderer process. We default to using a renderer process for each site instance (i.e., group of pages from the same registered domain with script connections to each other). ↪ |
--product-version ⊗ | Outputs the product version information and quit. Used as an internal api to detect the installed version of Chrome on Linux. ↪ |
--profile-directory ⊗ | Selects directory of profile to associate with the first browser launched. ↪ |
--profiler-timing ⊗ | Configure whether chrome://profiler will contain timing information. This option is enabled by default. A value of "0" will disable profiler timing, while all other values will enable it. ↪ |
--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. ↪ |
Specifies Android phone page loading progress bar animation. ↪ | |
--promo-server-url ⊗ | Specifies a custom URL for fetching NTP promo data. ↪ |
Should we prompt the user before allowing external extensions to install? This flag is available on Chromium for testing purposes. ↪ | |
--proxy-auto-detect ⊗ | Forces proxy auto-detection. ↪ |
--proxy-bypass-list ⊗ | Specifies 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 ⊗ | Uses the pac script at the given URL ↪ |
--proxy-server ⊗ | Uses a specified proxy server, overrides system settings. This switch only affects HTTP and HTTPS requests. ↪ |
--quic-connection-options ⊗ | Specifies a comma separated list of QUIC connection options to send to the server. ↪ |
--quic-max-packet-length ⊗ | Specifies the maximum length for a QUIC packet. ↪ |
--quic-version ⊗ | Specifies the version of QUIC to use. ↪ |
本文转载自异步社区
原文链接:
https://www.epubit.com/articleDetails?id=N5b90f55b-6312-48ed-9829-592eb31e0dc2 |
- 点赞
- 收藏
- 关注作者
评论(0)