// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/chrome_switches.h" #include "base/base_switches.h" namespace switches { // ----------------------------------------------------------------------------- // Can't find the switch you are looking for? try looking in // base/base_switches.cc instead. // ----------------------------------------------------------------------------- // Activate (make foreground) myself on launch. Helpful when Chrome // is launched on the command line (e.g. by Selenium). Only needed on Mac. const char kActivateOnLaunch[] = "activate-on-launch"; // On ChromeOS, file:// access is disabled except for certain whitelisted // directories. This switch re-enables file:// for testing. const char kAllowFileAccess[] = "allow-file-access"; // Allow non-https URL for background_page for hosted apps. const char kAllowHTTPBackgroundPage[] = "allow-http-background-page"; // Don't block outdated plugins. const char kAllowOutdatedPlugins[] = "allow-outdated-plugins"; // Allows injecting extensions and user scripts on the extensions // gallery site. Normally prevented for security reasons, but can be // useful for automation testing of the gallery. const char kAllowScriptingGallery[] = "allow-scripting-gallery"; // This prevents Chrome from requiring authorization to run certain widely // installed but less commonly used plug-ins. const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins"; // 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. const char kAlwaysEnableDevTools[] = "always-enable-dev-tools"; // Specifies that the associated value should be launched in "application" mode. const char kApp[] = "app"; // Specifies that the extension-app with the specified id should be launched // according to its configuration. const char kAppId[] = "app-id"; // Override the apps checkout URL, which is used to determine when to expose // some private APIs. const char kAppsCheckoutURL[] = "apps-checkout-url"; // Specifying this flag allows the webstorePrivate APIs to return browser (aka // sync) login tokens to be used for auto-login in the Web Store (normally they // do not). const char kAppsGalleryReturnTokens[] = "apps-gallery-return-tokens"; // The URL to use for the gallery link in the app launcher. const char kAppsGalleryURL[] = "apps-gallery-url"; // The update url used by gallery/webstore extensions. const char kAppsGalleryUpdateURL[] = "apps-gallery-update-url"; // Disable throbber for extension apps. const char kAppsNoThrob[] = "apps-no-throb"; // Whitelist of servers that Negotiate will generate delegated Kerberos tickets // for. const char kAuthNegotiateDelegateWhitelist[] = "auth-negotiate-delegate-whitelist"; // 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. const char kAuthSchemes[] = "auth-schemes"; // Whitelist of servers which NTLM and Negotiate can automatically authenticate // with using the default credentials of the currently logged in user. const char kAuthServerWhitelist[] = "auth-server-whitelist"; // The value of this switch tells the app to listen for and broadcast // automation-related messages on IPC channel with the given ID. const char kAutomationClientChannelID[] = "automation-channel"; // When the option to block third-party cookies from being set is enabled, // also block third-party cookies from being read. const char kBlockReadingThirdPartyCookies[] = "block-reading-third-party-cookies"; // Causes the browser process to throw an assertion on startup. const char kBrowserAssertTest[] = "assert-test"; // Causes the browser process to crash on startup. const char kBrowserCrashTest[] = "crash-test"; // How often (in seconds) to check for updates. Should only be used for // testing purposes. const char kCheckForUpdateIntervalSec[] = "check-for-update-interval"; // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run // as a dependent process of the Chrome Frame plugin. const char kChromeFrame[] = "chrome-frame"; // Tells chrome to load the specified version of chrome.dll on Windows. If // this version cannot be loaded, Chrome will exit. const char kChromeVersion[] = "chrome-version"; // The unique id to be used for this cloud print proxy instance. const char kCloudPrintProxyId[] = "cloud-print-proxy-id"; // Tells chrome to display the cloud print dialog and upload the // specified file for printing. const char kCloudPrintFile[] = "cloud-print-file"; // Used with kCloudPrintFile to specify a title for the resulting print // job. const char kCloudPrintJobTitle[] = "cloud-print-job-title"; // Specifies the mime type to be used when uploading data from the // file referenced by cloud-print-file. // Defaults to "application/pdf" if unspecified. const char kCloudPrintFileType[] = "cloud-print-file-type"; // 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). const char kCloudPrintServiceURL[] = "cloud-print-service"; // Causes the browser process to inspect loaded and registered DLLs for // known conflicts and warn the user. const char kConflictingModulesCheck[] = "conflicting-modules-check"; // 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. const char kCountry[] = "country"; // If enabled, tries to load inspector files from disk (allows reloading of // devtool files without having to restart the browser). const char kDebugDevTools[] = "debug-devtools"; // Enables support to debug printing subsystem. const char kDebugPrint[] = "debug-print"; // 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. const char kDeviceManagementUrl[] = "device-management-url"; // Triggers a pletora of diagnostic modes. const char kDiagnostics[] = "diagnostics"; // Disables the hardware acceleration of 3D CSS and animation. const char kDisableAcceleratedLayers[] = "disable-accelerated-layers"; // Disables GPU accelerated video display. const char kDisableAcceleratedVideo[] = "disable-accelerated-video"; // Disables the alternate window station for the renderer. const char kDisableAltWinstation[] = "disable-winsta"; // Replaces the audio IPC layer for