blob: 74565f2c964d926f454950305d74d6e282b83315 [file] [log] [blame]
drogerf83b91262015-03-05 19:45:191// Copyright 2015 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "ios/chrome/browser/chrome_switches.h"
6
7namespace switches {
8
9// -----------------------------------------------------------------------------
10// When commenting your switch, please use the same voice as surrounding
11// comments. Imagine "This switch..." at the beginning of the phrase, and it'll
12// all work out.
13// -----------------------------------------------------------------------------
14
noyauc7892c12016-05-12 12:22:0115// Disables all bookmarks view in bookmark manager.
16const char kDisableAllBookmarksView[] = "disable-all-bookmarks-view";
17
sdefresne89aa4252015-11-05 09:29:1518// Disables Contextual Search.
19const char kDisableContextualSearch[] = "disable-contextual-search";
20
21// Disables a workaround for fast inset updates for UIWebView.scrollView.
22const char kDisableIOSFastWebScrollViewInsets[] =
23 "disable-fast-web-scroll-view-insets";
24
sdefresnec9763902015-12-02 10:30:1125// Lists separated by commas the name of features to disable.
26// See base::FeatureList::InitializeFromCommandLine for details.
27const char kDisableIOSFeatures[] = "disable-features";
28
sdefresne89aa4252015-11-05 09:29:1529// Disable password generation for iOS.
30const char kDisableIOSPasswordGeneration[] = "disable-ios-password-generation";
31
32// Disable showing available password credentials in the keyboard accessory
33// view when focused on form fields.
34const char kDisableIOSPasswordSuggestions[] =
35 "disable-ios-password-suggestions";
36
sdefresneb53a9872015-05-18 20:01:4937// Disables the use of WKWebView instead of UIWebView.
38const char kDisableIOSWKWebView[] = "disable-wkwebview";
39
gchatz339541b42015-12-21 14:23:0140// Disable the snapshots lru cache.
41const char kDisableLRUSnapshotCache[] = "disable-lru-snapshot-cache";
42
sdefresne89aa4252015-11-05 09:29:1543// Disable auto-reload of error pages if offline.
44const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload";
45
gchatzb4c56b72015-12-18 19:11:0246// Disables the tab eviction policy. (applicable iff WKWebView is enabled)
47const char kDisableTabEviction[] = "disable-tab-eviction";
48
gchatz339541b42015-12-21 14:23:0149// Disables the tab switcher.
50const char kDisableTabSwitcher[] = "disable-tab-switcher";
51
mattreynoldsc9f1df52016-06-29 08:30:0452// Disables Physical Web scanning for nearby URLs.
53const char kDisableIOSPhysicalWeb[] = "disable-ios-physical-web";
54
noyauc7892c12016-05-12 12:22:0155// Enables all bookmarks view in bookmark manager.
56const char kEnableAllBookmarksView[] = "enable-all-bookmarks-view";
57
sdefresne89aa4252015-11-05 09:29:1558// Enables Contextual Search.
59const char kEnableContextualSearch[] = "enable-contextual-search";
60
61// Enable the experimental Credential Manager JavaScript API.
62const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api";
63
64// Enables a workaround for fast inset updates for UIWebView.scrollView.
65const char kEnableIOSFastWebScrollViewInsets[] =
66 "enable-fast-web-scroll-view-insets";
67
sdefresnec9763902015-12-02 10:30:1168// Lists separated by commas the name of features to disable.
69// See base::FeatureList::InitializeFromCommandLine for details.
70const char kEnableIOSFeatures[] = "enable-features";
71
sdefresne89aa4252015-11-05 09:29:1572// Enables support for Handoff from Chrome on iOS to the default browser of
73// other Apple devices.
74const char kEnableIOSHandoffToOtherDevices[] =
75 "enable-ios-handoff-to-other-devices";
76
77// Enable password generation for iOS.
78const char kEnableIOSPasswordGeneration[] = "enable-ios-password-generation";
79
sdefresneb53a9872015-05-18 20:01:4980// Enables the use of WKWebView instead of UIWebView.
81const char kEnableIOSWKWebView[] = "enable-wkwebview";
82
gchatz339541b42015-12-21 14:23:0183// Enables the snapshot lru cache.
84const char kEnableLRUSnapshotCache[] = "enable-lru-snapshot-cache";
85
sdefresne89aa4252015-11-05 09:29:1586// Enable auto-reload of error pages if offline.
87const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload";
88
sdefresnee265e232015-05-19 21:32:1589// Enables context-sensitive reader mode button in the toolbar.
90const char kEnableReaderModeToolbarIcon[] = "enable-reader-mode-toolbar-icon";
91
gchatzb4c56b72015-12-18 19:11:0292// Enables the tab eviction policy. (applicable iff WKWebView is enabled)
93const char kEnableTabEviction[] = "enable-tab-eviction";
94
gchatz339541b42015-12-21 14:23:0195// Enables the tab switcher.
96const char kEnableTabSwitcher[] = "enable-tab-switcher";
97
mattreynoldsc9f1df52016-06-29 08:30:0498// Enables Physical Web scanning for nearby URLs.
99const char kEnableIOSPhysicalWeb[] = "enable-ios-physical-web";
100
sdefresne14957be2015-12-07 15:49:13101// Forces additional Chrome Variation Ids that will be sent in X-Client-Data
102// header, specified as a 64-bit encoded list of numeric experiment ids. Ids
103// prefixed with the character "t" will be treated as Trigger Variation Ids.
104const char kIOSForceVariationIds[] = "force-variation-ids";
105
blundell498aca682015-10-26 07:08:44106// Enables the recording of metrics reports but disables reporting. In contrast
107// to kDisableMetrics, this executes all the code that a normal client would
108// use for reporting, except the report is dropped rather than sent to the
109// server. This is useful for finding issues in the metrics code during UI and
110// performance tests.
111const char kIOSMetricsRecordingOnly[] = "metrics-recording-only";
112
sdefresne89aa4252015-11-05 09:29:15113// A string used to override the default user agent with a custom one.
114const char kUserAgent[] = "user-agent";
115
sdefresne0de3b61f2015-11-18 15:22:29116// These mappings only apply to the host resolver.
117const char kIOSHostResolverRules[] = "host-resolver-rules";
118
sdefresne75573652015-11-26 14:57:03119// Ignores certificate-related errors.
120const char kIOSIgnoreCertificateErrors[] = "ignore-certificate-errors";
121
sdefresne2b8a3872015-11-18 18:11:03122// Allows for forcing socket connections to http/https to use fixed ports.
123const char kIOSTestingFixedHttpPort[] = "testing-fixed-http-port";
124const char kIOSTestingFixedHttpsPort[] = "testing-fixed-https-port";
125
sdefresne14957be2015-12-07 15:49:13126// Enables grouping websites by domain and filtering them by period.
127const char kHistoryEnableGroupByDomain[] = "enable-grouped-history";
128
129// Use to opt-in to marking HTTP as non-secure.
130const char kMarkNonSecureAs[] = "mark-non-secure-as";
131const char kMarkNonSecureAsNeutral[] = "neutral";
132const char kMarkNonSecureAsNonSecure[] = "non-secure";
133
drogerf83b91262015-03-05 19:45:19134} // namespace switches