Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / common / chrome_switches.cc
index dc2fe04..d1bd254 100644 (file)
@@ -22,7 +22,7 @@ namespace switches {
 // -----------------------------------------------------------------------------
 
 // Allows choosing an existing managed user profile during the managed
-// user creation flow.
+// user creation flow. Is only used on ChromeOS.
 const char kAllowCreateExistingManagedUsers[] =
     "allow-create-existing-managed-users";
 
@@ -143,14 +143,16 @@ const char kAutomationReinitializeOnChannelError[] =
 // will not occur in subsequent runs either.
 const char kCancelFirstRun[]                = "cancel-first-run";
 
-// Certificate Transparency: Uses the provided log for checking Signed
+// Certificate Transparency: Uses the provided log(s) for checking Signed
 // Certificate Timestamps provided with certificates.
 // The switch's value is:
-//   log_description:log_key
-// where:
-//   log_description is a textual description of the log
+//   log_description:log_key,log_description:log_key,...
+// 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.
+// Multiple logs can be specified by repeating description:key pairs,
+// separated by a comma.
 const char kCertificateTransparencyLog[] =
     "certificate-transparency-log";
 
@@ -268,6 +270,9 @@ const char kDisableAsyncDns[]               = "disable-async-dns";
 const char kDisableAuthNegotiateCnameLookup[] =
     "disable-auth-negotiate-cname-lookup";
 
+// Disables the i18n address input widget for the requestAutocomplete() dialog.
+const char kDisableAutofillAddressI18n[]    = "disable-autofill-address-i18n";
+
 // Disables background mode (background apps will not keep chrome running in
 // the background).
 const char kDisableBackgroundMode[]         = "disable-background-mode";
@@ -302,6 +307,11 @@ const char kDisableComponentUpdate[]        = "disable-component-update";
 // set of CRLs rather than performing on-line checks.
 const char kDisableCRLSets[]                = "disable-crl-sets";
 
+// Disables choosing an existing managed user profile during the managed
+// user creation flow.
+const char kDisableCreateExistingManagedUsers[] =
+    "disable-create-exsting-managed-users";
+
 // Disables the custom JumpList on Windows 7.
 const char kDisableCustomJumpList[]         = "disable-custom-jumplist";
 
@@ -369,10 +379,8 @@ const char kDisableOmniboxAutoCompletionForIme[] =
 // Disable the origin chip.
 const char kDisableOriginChip[]             = "disable-origin-chip";
 
-// Disable using a public suffix based domain matching for autofill of
-// passwords.
-const char kDisablePasswordAutofillPublicSuffixDomainMatching[] =
-    "disable-password-autofill-public-suffix-domain-matching";
+// Disable the origin chip in the location bar.
+const char kDisableOriginChipV2[]             = "disable-origin-chip-v2";
 
 // Disable the setting to prompt the user for their OS account password before
 // revealing plaintext passwords in the password manager.
@@ -434,9 +442,6 @@ const char kDisableSearchButtonInOmnibox[]  =
 // Disable SPDY/3.1. This is a temporary testing flag.
 const char kDisableSpdy31[]                 = "disable-spdy31";
 
-// Disables support of sticky keys.
-const char kDisableStickyKeys[]             = "disable-sticky-keys";
-
 // Disables syncing browser data to a Google Account.
 const char kDisableSync[]                   = "disable-sync";
 
@@ -493,11 +498,6 @@ const char kDisableSyncThemes[]             = "disable-sync-themes";
 // Disables syncing browser typed urls.
 const char kDisableSyncTypedUrls[]          = "disable-sync-typed-urls";
 
-// Allows 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.
-const char kDisableTranslate[]              = "disable-translate";
-
 // Disables TLS Channel ID extension.
 const char kDisableTLSChannelID[]           = "disable-tls-channel-id";
 
@@ -546,10 +546,6 @@ const char kEnableAdview[]                  = "enable-adview";
 // If set, the app list will be enabled as if enabled from CWS.
 const char kEnableAppList[]                 = "enable-app-list";
 
-// Enables specifying a "src" attribute on <adview> elements
-// (for testing purposes, to skip the whitelist).
-const char kEnableAdviewSrcAttribute[]      = "enable-adview-src-attribute";
-
 // Enables the <window-controls> tag in platform apps.
 const char kEnableAppWindowControls[]       = "enable-app-window-controls";
 
@@ -566,9 +562,6 @@ const char kEnableAsyncDns[]                = "enable-async-dns";
 // HttpAuthHandlerNegotiate::CreateSPN for more background.
 const char kEnableAuthNegotiatePort[]       = "enable-auth-negotiate-port";
 
-// Enables the i18n address input widget for the requestAutocomplete() dialog.
-const char kEnableAutofillAddressI18n[]     = "enable-autofill-address-i18n";
-
 // Enable using a public suffix based domain matching for autofill of passwords.
 const char kEnablePasswordAutofillPublicSuffixDomainMatching[] =
     "enable-password-autofill-public-suffix-domain-matching";
@@ -702,6 +695,20 @@ const char kEnableOriginChipTrailingLocationBar[] =
 const char kEnableOriginChipLeadingMenuButton[] =
     "enable-origin-chip-leading-menu-button";
 
+// Controls which branch of the origin chip in location bar experiment is
+// enabled.
+//
+// We're using independent flags here (as opposed to a common flag with
+// different values) to be able to enable/disable the entire experience
+// associated with this feature server-side from the FieldTrial (the complete
+// experience includes other flag changes as well). It is not currently possible
+// to do that with "flag=value" flags.
+const char kEnableOriginChipV2[] = "enable-origin-chip-v2";
+const char kEnableOriginChipV2HideOnMouseRelease[] =
+    "enable-origin-chip-v2-hide-on-mouse-release";
+const char kEnableOriginChipV2HideOnUserInput[] =
+    "enable-origin-chip-v2-hide-on-user-input";
+
 // Enables panels (always on-top docked pop-up windows).
 const char kEnablePanels[]                  = "enable-panels";
 
@@ -729,9 +736,6 @@ const char kEnableQuicHttps[]               = "enable-quic-https";
 // This only has an effect if QUIC protocol is enabled.
 const char kEnableQuicPortSelection[]       = "enable-quic-port-selection";
 
-// Enables the Quickoffoce/Chrome document viewer rather than the editor.
-const char kEnableQuickofficeViewing[]      = "enable-quickoffice-viewing";
-
 // Enables save password prompt bubble.
 const char kEnableSavePasswordBubble[]      = "enable-save-password-bubble";
 
@@ -756,8 +760,9 @@ const char kEnableSearchButtonInOmniboxForStr[] =
 const char kEnableSearchButtonInOmniboxForStrOrIip[] =
     "enable-search-button-in-omnibox-for-str-or-iip";
 
-// Enables support of sticky keys.
-const char kEnableStickyKeys[]              = "enable-sticky-keys";
+// Certificate Transparency: Enable showing the SCT viewer when an SSL
+// certificate is accompanied by, or contains, SCTs.
+const char kEnableSignedCertificateTimestampsViewer[] = "enable-sct-viewer";
 
 // Enable SPDY/2. This is a temporary testing flag. See
 // http://crbug.com/303957 .
@@ -1149,10 +1154,6 @@ const char kPlaybackMode[]                  = "playback-mode";
 // Overrides the path to the location that PNaCl is installed.
 const char kPnaclDir[]                      = "pnacl-dir";
 
-// Forces the PPAPI version of Flash (if it's being used) to run in the
-// renderer process rather than in a separate plugin process.
-const char kPpapiFlashInProcess[]           = "ppapi-flash-in-process";
-
 // Use the PPAPI (Pepper) Flash found at the given path.
 const char kPpapiFlashPath[]                = "ppapi-flash-path";
 
@@ -1161,6 +1162,10 @@ const char kPpapiFlashPath[]                = "ppapi-flash-path";
 // defaults to "10.2.999.999".
 const char kPpapiFlashVersion[]             = "ppapi-flash-version";
 
+// Triggers prerendering of search base page to prefetch results for the typed
+// omnibox query. Only has an effect when prerender is enabled.
+const char kPrefetchSearchResults[]         = "prefetch-search-results";
+
 // 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.
@@ -1456,9 +1461,6 @@ const char kTestType[]                      = "test-type";
 // channel with the given ID.
 const char kTestingChannelID[]              = "testing-channel";
 
-// Overrides the default server used for Google Translate.
-const char kTranslateScriptURL[]            = "translate-script-url";
-
 // Disables same-origin check on HTTP resources pushed via a SPDY proxy.
 // The value is the host:port of the trusted proxy.
 const char kTrustedSpdyProxy[]              = "trusted-spdy-proxy";
@@ -1492,11 +1494,6 @@ const char kMaxSpdyConcurrentStreams[]      = "max-spdy-concurrent-streams";
 // all of its state.
 const char kUserDataDir[]                   = "user-data-dir";
 
-// Use the system-provided title bar and window dressing. Only affects Linux
-// Aura. Temporarily activated by a switch; eventually to be dynamically
-// changeable with the kUseCustomChromeFrame preference as with the GTK version.
-const char kUseSystemTitleBar[]             = "use-system-title-bar";
-
 // Examines a .crx for validity and prints the result.
 const char kValidateCrx[]                   = "validate-crx";
 
@@ -1535,8 +1532,8 @@ const char kEnableSpdyProxyAuth[]           = "enable-spdy-proxy-auth";
 #endif  // defined(OS_ANDROID) || defined(OS_IOS)
 
 #if defined(OS_ANDROID)
-// Makes the "Add to Homescreen" shortcut invisible.
-const char kDisableAddToHomescreen[]         = "disable-add-to-homescreen";
+// Disables the app banner <meta> tag.
+const char kDisableAppBanners[]              = "disable-app-banners";
 
 // Disables the new NTP.
 const char kDisableNewNTP[]                  = "disable-new-ntp";
@@ -1548,8 +1545,11 @@ const char kDisableZeroSuggest[] = "disable-zero-suggest";
 const char kEnableAccessibilityTabSwitcher[] =
     "enable-accessibility-tab-switcher";
 
-// Makes the "Add to Homescreen" shortcut visible.
-const char kEnableAddToHomescreen[]         = "enable-add-to-homescreen";
+// Enables support for playing videos on Chromecast devices.
+const char kEnableCast[]                    = "enable-cast";
+
+// Enables Contextual Search
+const char kEnableContextualSearch[]        = "contextual-search";
 
 // Enables the new NTP.
 const char kEnableNewNTP[]                  = "enable-new-ntp";
@@ -1557,9 +1557,6 @@ const char kEnableNewNTP[]                  = "enable-new-ntp";
 // Pops the translate infobar if possible.
 const char kEnableTranslate[]               = "enable-translate";
 
-// Enables support for playing videos on Chromecast devices.
-const char kEnableCast[]                    = "enable-cast";
-
 // Enables zero suggest functionality on Dev channel, showing contextual
 // suggestions (EtherSuggest) for http pages and google.com search queries.
 const char kEnableZeroSuggestEtherSerp[] =
@@ -1608,9 +1605,6 @@ const char kDisableSystemFullscreenForTesting[] =
 const char kDisableCoreAnimationLayerSquashing[] =
     "disable-core-animation-layer-squashing";
 
-// Enables the tabs expose feature ( http://crbug.com/50307 ).
-const char kEnableExposeForTabs[]           = "enable-expose-for-tabs";
-
 // Enables a simplified fullscreen UI on Mac.
 const char kEnableSimplifiedFullscreen[]    = "enable-simplified-fullscreen";
 
@@ -1646,16 +1640,6 @@ const char kForceDesktop[]                  = "force-desktop";
 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut.
 const char kRelaunchShortcut[]              = "relaunch-shortcut";
 
-// Waits for the given handle to be signaled before relaunching metro Chrome on
-// Windows 8 and higher.
-const char kWaitForMutex[]                  = "wait-for-mutex";
-
-// Indicates that chrome was launched to service a search request in Windows 8.
-const char kWindows8Search[]           = "windows8-search";
-
-#endif
-
-#if defined(OS_WIN) && defined(USE_AURA)
 // Requests that Chrome connect to the running Metro viewer process.
 const char kViewerConnect[]                 = "viewer-connect";
 
@@ -1663,6 +1647,13 @@ const char kViewerConnect[]                 = "viewer-connect";
 // (which is assumed to be registered as default browser) and synchronously
 // connect to it.
 const char kViewerLaunchViaAppId[]          = "viewer-launch-via-appid";
+
+// Waits for the given handle to be signaled before relaunching metro Chrome on
+// Windows 8 and higher.
+const char kWaitForMutex[]                  = "wait-for-mutex";
+
+// Indicates that chrome was launched to service a search request in Windows 8.
+const char kWindows8Search[]           = "windows8-search";
 #endif
 
 #ifndef NDEBUG