| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| 11 // Can't find the switch you are looking for? try looking in | 11 // Can't find the switch you are looking for? try looking in |
| 12 // base/base_switches.cc instead. | 12 // base/base_switches.cc instead. |
| 13 | 13 |
| 14 // Suppresses hang monitor dialogs in renderer processes. | 14 // Suppresses hang monitor dialogs in renderer processes. |
| 15 const wchar_t kDisableHangMonitor[] = L"disable-hang-monitor"; | 15 const char kDisableHangMonitor[] = "disable-hang-monitor"; |
| 16 | 16 |
| 17 // Completely disables UMA metrics system. | 17 // Completely disables UMA metrics system. |
| 18 const wchar_t kDisableMetrics[] = L"disable-metrics"; | 18 const char kDisableMetrics[] = "disable-metrics"; |
| 19 | 19 |
| 20 // Enables the recording of metrics reports but disables reporting. | 20 // Enables the recording of metrics reports but disables reporting. |
| 21 // In contrast to kDisableMetrics, this executes all the code that a normal | 21 // In contrast to kDisableMetrics, this executes all the code that a normal |
| 22 // client would use for reporting, except the report is dropped rather than sent | 22 // client would use for reporting, except the report is dropped rather than sent |
| 23 // to the server. This is useful for finding issues in the metrics code during | 23 // to the server. This is useful for finding issues in the metrics code during |
| 24 // UI and performance tests. | 24 // UI and performance tests. |
| 25 const wchar_t kMetricsRecordingOnly[] = L"metrics-recording-only"; | 25 const char kMetricsRecordingOnly[] = "metrics-recording-only"; |
| 26 | 26 |
| 27 // Causes the browser process to throw an assertion on startup. | 27 // Causes the browser process to throw an assertion on startup. |
| 28 const wchar_t kBrowserAssertTest[] = L"assert-test"; | 28 const char kBrowserAssertTest[] = "assert-test"; |
| 29 | 29 |
| 30 // Causes the renderer process to throw an assertion on launch. | 30 // Causes the renderer process to throw an assertion on launch. |
| 31 const wchar_t kRendererAssertTest[] = L"renderer-assert-test"; | 31 const char kRendererAssertTest[] = "renderer-assert-test"; |
| 32 | 32 |
| 33 // Causes the browser process to crash on startup. | 33 // Causes the browser process to crash on startup. |
| 34 const wchar_t kBrowserCrashTest[] = L"crash-test"; | 34 const char kBrowserCrashTest[] = "crash-test"; |
| 35 | 35 |
| 36 // Causes the renderer process to crash on launch. | 36 // Causes the renderer process to crash on launch. |
| 37 const wchar_t kRendererCrashTest[] = L"renderer-crash-test"; | 37 const char kRendererCrashTest[] = "renderer-crash-test"; |
| 38 | 38 |
| 39 // Causes the renderer process to display a dialog on launch. | 39 // Causes the renderer process to display a dialog on launch. |
| 40 const wchar_t kRendererStartupDialog[] = L"renderer-startup-dialog"; | 40 const char kRendererStartupDialog[] = "renderer-startup-dialog"; |
| 41 | 41 |
| 42 // Causes the plugin process to display a dialog on launch. | 42 // Causes the plugin process to display a dialog on launch. |
| 43 const wchar_t kPluginStartupDialog[] = L"plugin-startup-dialog"; | 43 const char kPluginStartupDialog[] = "plugin-startup-dialog"; |
| 44 | 44 |
| 45 // Specifies a command that should be used to launch the plugin process. Useful | 45 // Specifies a command that should be used to launch the plugin process. Useful |
| 46 // for running the plugin process through purify or quantify. Ex: | 46 // for running the plugin process through purify or quantify. Ex: |
| 47 // --plugin-launcher="path\to\purify /Run=yes" | 47 // --plugin-launcher="path\to\purify /Run=yes" |
| 48 const wchar_t kPluginLauncher[] = L"plugin-launcher"; | 48 const char kPluginLauncher[] = "plugin-launcher"; |
| 49 | 49 |
| 50 // The value of this switch tells the app to listen for and broadcast | 50 // The value of this switch tells the app to listen for and broadcast |
| 51 // testing-related messages on IPC channel with the given ID. | 51 // testing-related messages on IPC channel with the given ID. |
| 52 const wchar_t kTestingChannelID[] = L"testing-channel"; | 52 const char kTestingChannelID[] = "testing-channel"; |
| 53 | 53 |
| 54 // The value of this switch specifies which page will be displayed | 54 // The value of this switch specifies which page will be displayed |
| 55 // in newly-opened tabs. We need this for testing purposes so | 55 // in newly-opened tabs. We need this for testing purposes so |
| 56 // that the UI tests don't depend on what comes up for http://google.com. | 56 // that the UI tests don't depend on what comes up for http://google.com. |
| 57 const wchar_t kHomePage[] = L"homepage"; | 57 const char kHomePage[] = "homepage"; |
| 58 | 58 |
| 59 // Causes the process to run as renderer instead of as browser. | 59 // Causes the process to run as renderer instead of as browser. |
| 60 const wchar_t kRendererProcess[] = L"renderer"; | 60 const char kRendererProcess[] = "renderer"; |
| 61 | 61 |
| 62 // Causes the process to run as a renderer zygote. | 62 // Causes the process to run as a renderer zygote. |
| 63 const wchar_t kZygoteProcess[] = L"zygote"; | 63 const char kZygoteProcess[] = "zygote"; |
| 64 | 64 |
| 65 // Path to the exe to run for the renderer and plugin subprocesses. | 65 // Path to the exe to run for the renderer and plugin subprocesses. |
| 66 const wchar_t kBrowserSubprocessPath[] = L"browser-subprocess-path"; | 66 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; |
| 67 | 67 |
| 68 // Causes the process to run as a plugin subprocess. | 68 // Causes the process to run as a plugin subprocess. |
| 69 const wchar_t kPluginProcess[] = L"plugin"; | 69 const char kPluginProcess[] = "plugin"; |
| 70 | 70 |
| 71 // Causes the process to run as a worker subprocess. | 71 // Causes the process to run as a worker subprocess. |
| 72 const wchar_t kWorkerProcess[] = L"worker"; | 72 const char kWorkerProcess[] = "worker"; |
| 73 | 73 |
| 74 // Causes the process to run as a NativeClient's sel_ldr subprocess. | 74 // Causes the process to run as a NativeClient's sel_ldr subprocess. |
| 75 const wchar_t kNaClProcess[] = L"nacl"; | 75 const char kNaClProcess[] = "nacl"; |
| 76 | 76 |
| 77 // Causes the process to run as a utility subprocess. | 77 // Causes the process to run as a utility subprocess. |
| 78 const wchar_t kUtilityProcess[] = L"utility"; | 78 const char kUtilityProcess[] = "utility"; |
| 79 | 79 |
| 80 // Causes the process to run as a profile import subprocess. | 80 // Causes the process to run as a profile import subprocess. |
| 81 const wchar_t kProfileImportProcess[] = L"profile-import"; | 81 const char kProfileImportProcess[] = "profile-import"; |
| 82 | 82 |
| 83 // Runs the renderer and plugins in the same process as the browser | 83 // Runs the renderer and plugins in the same process as the browser |
| 84 const wchar_t kSingleProcess[] = L"single-process"; | 84 const char kSingleProcess[] = "single-process"; |
| 85 | 85 |
| 86 // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own | 86 // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own |
| 87 // renderer process. We default to using a renderer process for each | 87 // renderer process. We default to using a renderer process for each |
| 88 // site instance (i.e., group of pages from the same registered domain with | 88 // site instance (i.e., group of pages from the same registered domain with |
| 89 // script connections to each other). | 89 // script connections to each other). |
| 90 const wchar_t kProcessPerTab[] = L"process-per-tab"; | 90 const char kProcessPerTab[] = "process-per-tab"; |
| 91 | 91 |
| 92 // Runs a single process for each site (i.e., group of pages from the same | 92 // Runs a single process for each site (i.e., group of pages from the same |
| 93 // registered domain) the user visits. We default to using a renderer process | 93 // registered domain) the user visits. We default to using a renderer process |
| 94 // for each site instance (i.e., group of pages from the same registered | 94 // for each site instance (i.e., group of pages from the same registered |
| 95 // domain with script connections to each other). | 95 // domain with script connections to each other). |
| 96 const wchar_t kProcessPerSite[] = L"process-per-site"; | 96 const char kProcessPerSite[] = "process-per-site"; |
| 97 | 97 |
| 98 // Runs plugins inside the renderer process | 98 // Runs plugins inside the renderer process |
| 99 const wchar_t kInProcessPlugins[] = L"in-process-plugins"; | 99 const char kInProcessPlugins[] = "in-process-plugins"; |
| 100 | 100 |
| 101 // Runs the renderer outside the sandbox. | 101 // Runs the renderer outside the sandbox. |
| 102 const wchar_t kNoSandbox[] = L"no-sandbox"; | 102 const char kNoSandbox[] = "no-sandbox"; |
| 103 | 103 |
| 104 // Disables the alternate window station for the renderer. | 104 // Disables the alternate window station for the renderer. |
| 105 const wchar_t kDisableAltWinstation[] = L"disable-winsta"; | 105 const char kDisableAltWinstation[] = "disable-winsta"; |
| 106 | 106 |
| 107 // Runs the plugin processes inside the sandbox. | 107 // Runs the plugin processes inside the sandbox. |
| 108 const wchar_t kSafePlugins[] = L"safe-plugins"; | 108 const char kSafePlugins[] = "safe-plugins"; |
| 109 | 109 |
| 110 // Excludes these plugins from the plugin sandbox. | 110 // Excludes these plugins from the plugin sandbox. |
| 111 // This is a comma-separated list of plugin library names. | 111 // This is a comma-separated list of plugin library names. |
| 112 const wchar_t kTrustedPlugins[] = L"trusted-plugins"; | 112 const char kTrustedPlugins[] = "trusted-plugins"; |
| 113 | 113 |
| 114 // Runs the security test for the sandbox. | 114 // Runs the security test for the sandbox. |
| 115 const wchar_t kTestSandbox[] = L"test-sandbox"; | 115 const char kTestSandbox[] = "test-sandbox"; |
| 116 | 116 |
| 117 // Specifies the user data directory, which is where the browser will look | 117 // Specifies the user data directory, which is where the browser will look |
| 118 // for all of its state. | 118 // for all of its state. |
| 119 const wchar_t kUserDataDir[] = L"user-data-dir"; | 119 const char kUserDataDir[] = "user-data-dir"; |
| 120 | 120 |
| 121 // Specifies the plugin data directory, which is where plugins (Gears | 121 // Specifies the plugin data directory, which is where plugins (Gears |
| 122 // specifically) will store its state. | 122 // specifically) will store its state. |
| 123 const wchar_t kPluginDataDir[] = L"plugin-data-dir"; | 123 const char kPluginDataDir[] = "plugin-data-dir"; |
| 124 | 124 |
| 125 // Use a specific disk cache location, rather than one derived from the | 125 // Use a specific disk cache location, rather than one derived from the |
| 126 // UserDatadir. | 126 // UserDatadir. |
| 127 const wchar_t kDiskCacheDir[] = L"disk-cache-dir"; | 127 const char kDiskCacheDir[] = "disk-cache-dir"; |
| 128 | 128 |
| 129 // Forces the maximum disk space to be used by the disk cache, in bytes. | 129 // Forces the maximum disk space to be used by the disk cache, in bytes. |
| 130 const wchar_t kDiskCacheSize[] = L"disk-cache-size"; | 130 const char kDiskCacheSize[] = "disk-cache-size"; |
| 131 | 131 |
| 132 // Forces the maximum disk space to be used by the media cache, in bytes. | 132 // Forces the maximum disk space to be used by the media cache, in bytes. |
| 133 const wchar_t kMediaCacheSize[] = L"media-cache-size"; | 133 const char kMediaCacheSize[] = "media-cache-size"; |
| 134 | 134 |
| 135 // Whether the multiple profiles feature based on the user-data-dir flag is | 135 // Whether the multiple profiles feature based on the user-data-dir flag is |
| 136 // enabled or not. | 136 // enabled or not. |
| 137 const wchar_t kEnableUserDataDirProfiles[] = L"enable-udd-profiles"; | 137 const char kEnableUserDataDirProfiles[] = "enable-udd-profiles"; |
| 138 | 138 |
| 139 // Specifies the path to the user data folder for the parent profile. | 139 // Specifies the path to the user data folder for the parent profile. |
| 140 const wchar_t kParentProfile[] = L"parent-profile"; | 140 const char kParentProfile[] = "parent-profile"; |
| 141 | 141 |
| 142 // Specifies that the associated value should be launched in "application" mode. | 142 // Specifies that the associated value should be launched in "application" mode. |
| 143 const wchar_t kApp[] = L"app"; | 143 const char kApp[] = "app"; |
| 144 | 144 |
| 145 // Specifies if the dom_automation_controller_ needs to be bound in the | 145 // Specifies if the dom_automation_controller_ needs to be bound in the |
| 146 // renderer. This binding happens on per-frame basis and hence can potentially | 146 // renderer. This binding happens on per-frame basis and hence can potentially |
| 147 // be a performance bottleneck. One should only enable it when automating | 147 // be a performance bottleneck. One should only enable it when automating |
| 148 // dom based tests. | 148 // dom based tests. |
| 149 const wchar_t kDomAutomationController[] = L"dom-automation"; | 149 const char kDomAutomationController[] = "dom-automation"; |
| 150 | 150 |
| 151 // Tells the plugin process the path of the plugin to load | 151 // Tells the plugin process the path of the plugin to load |
| 152 const wchar_t kPluginPath[] = L"plugin-path"; | 152 const char kPluginPath[] = "plugin-path"; |
| 153 | 153 |
| 154 // A string used to override the default user agent with a custom one. | 154 // A string used to override the default user agent with a custom one. |
| 155 const wchar_t kUserAgent[] = L"user-agent"; | 155 const char kUserAgent[] = "user-agent"; |
| 156 | 156 |
| 157 // Specifies the flags passed to JS engine | 157 // Specifies the flags passed to JS engine |
| 158 const wchar_t kJavaScriptFlags[] = L"js-flags"; | 158 const char kJavaScriptFlags[] = "js-flags"; |
| 159 | 159 |
| 160 // The Country we should use. This is normally obtained from the operating | 160 // The Country we should use. This is normally obtained from the operating |
| 161 // system during first run and cached in the preferences afterwards. This is a | 161 // system during first run and cached in the preferences afterwards. This is a |
| 162 // string value, the 2 letter code from ISO 3166-1. | 162 // string value, the 2 letter code from ISO 3166-1. |
| 163 const wchar_t kCountry[] = L"country"; | 163 const char kCountry[] = "country"; |
| 164 | 164 |
| 165 // Will add kWaitForDebugger to every child processes. If a value is passed, it | 165 // Will add kWaitForDebugger to every child processes. If a value is passed, it |
| 166 // will be used as a filter to determine if the child process should have the | 166 // will be used as a filter to determine if the child process should have the |
| 167 // kWaitForDebugger flag passed on or not. | 167 // kWaitForDebugger flag passed on or not. |
| 168 const wchar_t kWaitForDebuggerChildren[] = L"wait-for-debugger-children"; | 168 const char kWaitForDebuggerChildren[] = "wait-for-debugger-children"; |
| 169 | 169 |
| 170 // Will filter log messages to show only the messages that are prefixed | 170 // Will filter log messages to show only the messages that are prefixed |
| 171 // with the specified value | 171 // with the specified value |
| 172 const wchar_t kLogFilterPrefix[] = L"log-filter-prefix"; | 172 const char kLogFilterPrefix[] = "log-filter-prefix"; |
| 173 | 173 |
| 174 // Force logging to be enabled. Logging is disabled by default in release | 174 // Force logging to be enabled. Logging is disabled by default in release |
| 175 // builds. | 175 // builds. |
| 176 const wchar_t kEnableLogging[] = L"enable-logging"; | 176 const char kEnableLogging[] = "enable-logging"; |
| 177 | 177 |
| 178 // Force logging to be disabled. Logging is enabled by default in debug | 178 // Force logging to be disabled. Logging is enabled by default in debug |
| 179 // builds. | 179 // builds. |
| 180 const wchar_t kDisableLogging[] = L"disable-logging"; | 180 const char kDisableLogging[] = "disable-logging"; |
| 181 | 181 |
| 182 // Sets the minimum log level. Valid values are from 0 to 3: | 182 // Sets the minimum log level. Valid values are from 0 to 3: |
| 183 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. | 183 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. |
| 184 const wchar_t kLoggingLevel[] = L"log-level"; | 184 const char kLoggingLevel[] = "log-level"; |
| 185 | 185 |
| 186 // Make plugin processes log their sent and received messages to LOG(INFO). | 186 // Make plugin processes log their sent and received messages to LOG(INFO). |
| 187 const wchar_t kLogPluginMessages[] = L"log-plugin-messages"; | 187 const char kLogPluginMessages[] = "log-plugin-messages"; |
| 188 | 188 |
| 189 // Dump any accumualted histograms to the log when browser terminates (requires | 189 // Dump any accumualted histograms to the log when browser terminates (requires |
| 190 // logging to be enabled to really do anything). Used by developers and test | 190 // logging to be enabled to really do anything). Used by developers and test |
| 191 // scripts. | 191 // scripts. |
| 192 const wchar_t kDumpHistogramsOnExit[] = L"dump-histograms-on-exit"; | 192 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; |
| 193 | 193 |
| 194 // enable remote debug / automation shell on the specified port | 194 // enable remote debug / automation shell on the specified port |
| 195 const wchar_t kRemoteShellPort[] = L"remote-shell-port"; | 195 const char kRemoteShellPort[] = "remote-shell-port"; |
| 196 | 196 |
| 197 // Runs un-installation steps that were done by chrome first-run. | 197 // Runs un-installation steps that were done by chrome first-run. |
| 198 const wchar_t kUninstall[] = L"uninstall"; | 198 const char kUninstall[] = "uninstall"; |
| 199 | 199 |
| 200 // Number of entries to show in the omnibox popup. | 200 // Number of entries to show in the omnibox popup. |
| 201 const wchar_t kOmniBoxPopupCount[] = L"omnibox-popup-count"; | 201 const char kOmniBoxPopupCount[] = "omnibox-popup-count"; |
| 202 | 202 |
| 203 // The value of this switch tells the app to listen for and broadcast | 203 // The value of this switch tells the app to listen for and broadcast |
| 204 // automation-related messages on IPC channel with the given ID. | 204 // automation-related messages on IPC channel with the given ID. |
| 205 const wchar_t kAutomationClientChannelID[] = L"automation-channel"; | 205 const char kAutomationClientChannelID[] = "automation-channel"; |
| 206 | 206 |
| 207 // Indicates the last session should be restored on startup. This overrides | 207 // Indicates the last session should be restored on startup. This overrides |
| 208 // the preferences value and is primarily intended for testing. The value of | 208 // the preferences value and is primarily intended for testing. The value of |
| 209 // this switch is the number of tabs to wait until loaded before | 209 // this switch is the number of tabs to wait until loaded before |
| 210 // 'load completed' is sent to the ui_test. | 210 // 'load completed' is sent to the ui_test. |
| 211 const wchar_t kRestoreLastSession[] = L"restore-last-session"; | 211 const char kRestoreLastSession[] = "restore-last-session"; |
| 212 | 212 |
| 213 // Chrome supports a playback and record mode. Record mode saves *everything* | 213 // Chrome supports a playback and record mode. Record mode saves *everything* |
| 214 // to the cache. Playback mode reads data exclusively from the cache. This | 214 // to the cache. Playback mode reads data exclusively from the cache. This |
| 215 // allows us to record a session into the cache and then replay it at will. | 215 // allows us to record a session into the cache and then replay it at will. |
| 216 const wchar_t kRecordMode[] = L"record-mode"; | 216 const char kRecordMode[] = "record-mode"; |
| 217 const wchar_t kPlaybackMode[] = L"playback-mode"; | 217 const char kPlaybackMode[] = "playback-mode"; |
| 218 | 218 |
| 219 // Don't record/playback events when using record & playback. | 219 // Don't record/playback events when using record & playback. |
| 220 const wchar_t kNoEvents[] = L"no-events"; | 220 const char kNoEvents[] = "no-events"; |
| 221 | 221 |
| 222 // Support a separate switch that enables the v8 playback extension. | 222 // Support a separate switch that enables the v8 playback extension. |
| 223 // The extension causes javascript calls to Date.now() and Math.random() | 223 // The extension causes javascript calls to Date.now() and Math.random() |
| 224 // to return consistent values, such that subsequent loads of the same | 224 // to return consistent values, such that subsequent loads of the same |
| 225 // page will result in consistent js-generated data and XHR requests. | 225 // page will result in consistent js-generated data and XHR requests. |
| 226 // Pages may still be able to generate inconsistent data from plugins. | 226 // Pages may still be able to generate inconsistent data from plugins. |
| 227 const wchar_t kNoJsRandomness[] = L"no-js-randomness"; | 227 const char kNoJsRandomness[] = "no-js-randomness"; |
| 228 | 228 |
| 229 // Make Windows happy by allowing it to show "Enable access to this program" | 229 // Make Windows happy by allowing it to show "Enable access to this program" |
| 230 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This | 230 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This |
| 231 // only shows an error box because the only way to hide Chrome is by | 231 // only shows an error box because the only way to hide Chrome is by |
| 232 // uninstalling it. | 232 // uninstalling it. |
| 233 const wchar_t kHideIcons[] = L"hide-icons"; | 233 const char kHideIcons[] = "hide-icons"; |
| 234 | 234 |
| 235 const wchar_t kShowIcons[] = L"show-icons"; | 235 const char kShowIcons[] = "show-icons"; |
| 236 | 236 |
| 237 // Make Chrome default browser | 237 // Make Chrome default browser |
| 238 const wchar_t kMakeDefaultBrowser[] = L"make-default-browser"; | 238 const char kMakeDefaultBrowser[] = "make-default-browser"; |
| 239 | 239 |
| 240 // Use a specified proxy server, overrides system settings. This switch only | 240 // Use a specified proxy server, overrides system settings. This switch only |
| 241 // affects HTTP and HTTPS requests. | 241 // affects HTTP and HTTPS requests. |
| 242 const wchar_t kProxyServer[] = L"proxy-server"; | 242 const char kProxyServer[] = "proxy-server"; |
| 243 | 243 |
| 244 // Don't use a proxy server, always make direct connections. Overrides any | 244 // Don't use a proxy server, always make direct connections. Overrides any |
| 245 // other proxy server flags that are passed. | 245 // other proxy server flags that are passed. |
| 246 const wchar_t kNoProxyServer[] = L"no-proxy-server"; | 246 const char kNoProxyServer[] = "no-proxy-server"; |
| 247 | 247 |
| 248 // Specify a list of hosts for whom we bypass proxy settings and use direct | 248 // Specify a list of hosts for whom we bypass proxy settings and use direct |
| 249 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are | 249 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are |
| 250 // also specified. | 250 // also specified. |
| 251 // TODO(robertshield): Specify host format. | 251 // TODO(robertshield): Specify host format. |
| 252 const wchar_t kProxyBypassList[] = L"proxy-bypass-list"; | 252 const char kProxyBypassList[] = "proxy-bypass-list"; |
| 253 | 253 |
| 254 // Force proxy auto-detection. | 254 // Force proxy auto-detection. |
| 255 const wchar_t kProxyAutoDetect[] = L"proxy-auto-detect"; | 255 const char kProxyAutoDetect[] = "proxy-auto-detect"; |
| 256 | 256 |
| 257 // Use the pac script at the given URL | 257 // Use the pac script at the given URL |
| 258 const wchar_t kProxyPacUrl[] = L"proxy-pac-url"; | 258 const char kProxyPacUrl[] = "proxy-pac-url"; |
| 259 | 259 |
| 260 // Use WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is | 260 // Use WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is |
| 261 // to use Chromium's network stack to fetch, and V8 to evaluate. | 261 // to use Chromium's network stack to fetch, and V8 to evaluate. |
| 262 const wchar_t kWinHttpProxyResolver[] = L"winhttp-proxy-resolver"; | 262 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver"; |
| 263 | 263 |
| 264 // Chrome will support prefetching of DNS information. Until this becomes | 264 // Chrome will support prefetching of DNS information. Until this becomes |
| 265 // the default, we'll provide a command line switch. | 265 // the default, we'll provide a command line switch. |
| 266 extern const wchar_t kDnsLogDetails[] = L"dns-log-details"; | 266 extern const char kDnsLogDetails[] = "dns-log-details"; |
| 267 extern const wchar_t kDnsPrefetchDisable[] = L"dns-prefetch-disable"; | 267 extern const char kDnsPrefetchDisable[] = "dns-prefetch-disable"; |
| 268 | 268 |
| 269 // Enables support to debug printing subsystem. | 269 // Enables support to debug printing subsystem. |
| 270 const wchar_t kDebugPrint[] = L"debug-print"; | 270 const char kDebugPrint[] = "debug-print"; |
| 271 | 271 |
| 272 // Prints the pages on the screen. | 272 // Prints the pages on the screen. |
| 273 const wchar_t kPrint[] = L"print"; | 273 const char kPrint[] = "print"; |
| 274 | 274 |
| 275 // Browser flag to disable the web inspector for all renderers. | 275 // Browser flag to disable the web inspector for all renderers. |
| 276 const wchar_t kDisableDevTools[] = L"disable-dev-tools"; | 276 const char kDisableDevTools[] = "disable-dev-tools"; |
| 277 | 277 |
| 278 // Enable web inspector for all windows, even if they're part of the browser. | 278 // Enable web inspector for all windows, even if they're part of the browser. |
| 279 // Allows us to use our dev tools to debug browser windows itself. | 279 // Allows us to use our dev tools to debug browser windows itself. |
| 280 const wchar_t kAlwaysEnableDevTools[] = L"always-enable-dev-tools"; | 280 const char kAlwaysEnableDevTools[] = "always-enable-dev-tools"; |
| 281 | 281 |
| 282 // Enable experimental timeline API. | 282 // Enable experimental timeline API. |
| 283 const wchar_t kEnableExtensionTimelineApi[] = | 283 const char kEnableExtensionTimelineApi[] = |
| 284 L"enable-extension-timeline-api"; | 284 "enable-extension-timeline-api"; |
| 285 | 285 |
| 286 // Used to set the value of SessionRestore::num_tabs_to_load_. See | 286 // Used to set the value of SessionRestore::num_tabs_to_load_. See |
| 287 // session_restore.h for details. | 287 // session_restore.h for details. |
| 288 const wchar_t kTabCountToLoadOnSessionRestore[]= | 288 const char kTabCountToLoadOnSessionRestore[]= |
| 289 L"tab-count-to-load-on-session-restore"; | 289 "tab-count-to-load-on-session-restore"; |
| 290 | 290 |
| 291 // Enable dynamic loading of the Memory Profiler DLL, which will trace | 291 // Enable dynamic loading of the Memory Profiler DLL, which will trace |
| 292 // all memory allocations during the run. | 292 // all memory allocations during the run. |
| 293 const wchar_t kMemoryProfiling[] = L"memory-profile"; | 293 const char kMemoryProfiling[] = "memory-profile"; |
| 294 | 294 |
| 295 // Adds a "Purge memory" button to the Task Manager, which tries to dump as much | 295 // Adds a "Purge memory" button to the Task Manager, which tries to dump as much |
| 296 // memory as possible. This is mostly useful for testing how well the | 296 // memory as possible. This is mostly useful for testing how well the |
| 297 // MemoryPurger functionality (which is normally triggered on Suspend) works. | 297 // MemoryPurger functionality (which is normally triggered on Suspend) works. |
| 298 // | 298 // |
| 299 // NOTE: This is only implemented for Views. | 299 // NOTE: This is only implemented for Views. |
| 300 const wchar_t kPurgeMemoryButton[] = L"purge-memory-button"; | 300 const char kPurgeMemoryButton[] = "purge-memory-button"; |
| 301 | 301 |
| 302 // By default, cookies are not allowed on file://. They are needed in for | 302 // By default, cookies are not allowed on file://. They are needed in for |
| 303 // testing, for example page cycler and layout tests. See bug 1157243. | 303 // testing, for example page cycler and layout tests. See bug 1157243. |
| 304 const wchar_t kEnableFileCookies[] = L"enable-file-cookies"; | 304 const char kEnableFileCookies[] = "enable-file-cookies"; |
| 305 | 305 |
| 306 // Start the browser maximized, regardless of any previous settings. | 306 // Start the browser maximized, regardless of any previous settings. |
| 307 const wchar_t kStartMaximized[] = L"start-maximized"; | 307 const char kStartMaximized[] = "start-maximized"; |
| 308 | 308 |
| 309 // Spawn threads to watch for excessive delays in specified message loops. | 309 // Spawn threads to watch for excessive delays in specified message loops. |
| 310 // User should set breakpoints on Alarm() to examine problematic thread. | 310 // User should set breakpoints on Alarm() to examine problematic thread. |
| 311 // Usage: -enable-watchdog=[ui][io] | 311 // Usage: -enable-watchdog=[ui][io] |
| 312 // Order of the listed sub-arguments does not matter. | 312 // Order of the listed sub-arguments does not matter. |
| 313 const wchar_t kEnableWatchdog[] = L"enable-watchdog"; | 313 const char kEnableWatchdog[] = "enable-watchdog"; |
| 314 | 314 |
| 315 // Display the First Run experience when the browser is started, regardless of | 315 // Display the First Run experience when the browser is started, regardless of |
| 316 // whether or not it's actually the first run. | 316 // whether or not it's actually the first run. |
| 317 const wchar_t kFirstRun[] = L"first-run"; | 317 const char kFirstRun[] = "first-run"; |
| 318 | 318 |
| 319 // Bypass the First Run experience when the browser is started, regardless of | 319 // Bypass the First Run experience when the browser is started, regardless of |
| 320 // whether or not it's actually the first run. Overrides kFirstRun in case | 320 // whether or not it's actually the first run. Overrides kFirstRun in case |
| 321 // you're for some reason tempted to pass them both. | 321 // you're for some reason tempted to pass them both. |
| 322 const wchar_t kNoFirstRun[] = L"no-first-run"; | 322 const char kNoFirstRun[] = "no-first-run"; |
| 323 | 323 |
| 324 #if defined(OS_POSIX) | 324 #if defined(OS_POSIX) |
| 325 // Bypass the error dialog when the profile lock couldn't be attained. | 325 // Bypass the error dialog when the profile lock couldn't be attained. |
| 326 // This switch is used during automated testing. | 326 // This switch is used during automated testing. |
| 327 const wchar_t kNoProcessSingletonDialog[] = L"no-process-singleton-dialog"; | 327 const char kNoProcessSingletonDialog[] = "no-process-singleton-dialog"; |
| 328 #endif | 328 #endif |
| 329 | 329 |
| 330 // Enable histograming of tasks served by MessageLoop. See about:histograms/Loop | 330 // Enable histograming of tasks served by MessageLoop. See about:histograms/Loop |
| 331 // for results, which show frequency of messages on each thread, including APC | 331 // for results, which show frequency of messages on each thread, including APC |
| 332 // count, object signalling count, etc. | 332 // count, object signalling count, etc. |
| 333 const wchar_t kMessageLoopHistogrammer[] = L"message-loop-histogrammer"; | 333 const char kMessageLoopHistogrammer[] = "message-loop-histogrammer"; |
| 334 | 334 |
| 335 // Perform importing from another browser. The value associated with this | 335 // Perform importing from another browser. The value associated with this |
| 336 // setting encodes the target browser and what items to import. | 336 // setting encodes the target browser and what items to import. |
| 337 const wchar_t kImport[] = L"import"; | 337 const char kImport[] = "import"; |
| 338 | 338 |
| 339 // Change the DCHECKS to dump memory and continue instead of displaying error | 339 // Change the DCHECKS to dump memory and continue instead of displaying error |
| 340 // dialog. This is valid only in Release mode when --enable-dcheck is | 340 // dialog. This is valid only in Release mode when --enable-dcheck is |
| 341 // specified. | 341 // specified. |
| 342 const wchar_t kSilentDumpOnDCHECK[] = L"silent-dump-on-dcheck"; | 342 const char kSilentDumpOnDCHECK[] = "silent-dump-on-dcheck"; |
| 343 | 343 |
| 344 // Normally when the user attempts to navigate to a page that was the result of | 344 // Normally when the user attempts to navigate to a page that was the result of |
| 345 // a post we prompt to make sure they want to. This switch may be used to | 345 // a post we prompt to make sure they want to. This switch may be used to |
| 346 // disable that check. This switch is used during automated testing. | 346 // disable that check. This switch is used during automated testing. |
| 347 const wchar_t kDisablePromptOnRepost[] = L"disable-prompt-on-repost"; | 347 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; |
| 348 | 348 |
| 349 // Disable pop-up blocking. | 349 // Disable pop-up blocking. |
| 350 const wchar_t kDisablePopupBlocking[] = L"disable-popup-blocking"; | 350 const char kDisablePopupBlocking[] = "disable-popup-blocking"; |
| 351 | 351 |
| 352 // Don't execute JavaScript (browser JS like the new tab page still runs). | 352 // Don't execute JavaScript (browser JS like the new tab page still runs). |
| 353 const wchar_t kDisableJavaScript[] = L"disable-javascript"; | 353 const char kDisableJavaScript[] = "disable-javascript"; |
| 354 | 354 |
| 355 // Don't enforce the same-origin policy. (Used by people testing their sites.) | 355 // Don't enforce the same-origin policy. (Used by people testing their sites.) |
| 356 const wchar_t kDisableWebSecurity[] = L"disable-web-security"; | 356 const char kDisableWebSecurity[] = "disable-web-security"; |
| 357 | 357 |
| 358 // Prevent Java from running. | 358 // Prevent Java from running. |
| 359 const wchar_t kDisableJava[] = L"disable-java"; | 359 const char kDisableJava[] = "disable-java"; |
| 360 | 360 |
| 361 // Prevent plugins from running. | 361 // Prevent plugins from running. |
| 362 const wchar_t kDisablePlugins[] = L"disable-plugins"; | 362 const char kDisablePlugins[] = "disable-plugins"; |
| 363 | 363 |
| 364 // Prevent images from loading. | 364 // Prevent images from loading. |
| 365 const wchar_t kDisableImages[] = L"disable-images"; | 365 const char kDisableImages[] = "disable-images"; |
| 366 | 366 |
| 367 // Enable remote web font support. SVG font should always work whether | 367 // Enable remote web font support. SVG font should always work whether |
| 368 // this option is specified or not. | 368 // this option is specified or not. |
| 369 const wchar_t kEnableRemoteFonts[] = L"enable-remote-fonts"; | 369 const char kEnableRemoteFonts[] = "enable-remote-fonts"; |
| 370 | 370 |
| 371 // Use the low fragmentation heap for the CRT. | 371 // Use the low fragmentation heap for the CRT. |
| 372 const wchar_t kUseLowFragHeapCrt[] = L"use-lf-heap"; | 372 const char kUseLowFragHeapCrt[] = "use-lf-heap"; |
| 373 | 373 |
| 374 // Runs the Native Client inside the renderer process. | 374 // Runs the Native Client inside the renderer process. |
| 375 const wchar_t kInternalNaCl[] = L"internal-nacl"; | 375 const char kInternalNaCl[] = "internal-nacl"; |
| 376 | 376 |
| 377 #ifndef NDEBUG | 377 #ifndef NDEBUG |
| 378 // Debug only switch to specify which gears plugin dll to load. | 378 // Debug only switch to specify which gears plugin dll to load. |
| 379 const wchar_t kGearsPluginPathOverride[] = L"gears-plugin-path"; | 379 const char kGearsPluginPathOverride[] = "gears-plugin-path"; |
| 380 #endif | 380 #endif |
| 381 | 381 |
| 382 // Enable the fastback page cache. | 382 // Enable the fastback page cache. |
| 383 const wchar_t kEnableFastback[] = L"enable-fastback"; | 383 const char kEnableFastback[] = "enable-fastback"; |
| 384 | 384 |
| 385 // Disable syncing bookmarks to a Google Account. | 385 // Disable syncing bookmarks to a Google Account. |
| 386 const wchar_t kDisableSync[] = L"disable-sync"; | 386 const char kDisableSync[] = "disable-sync"; |
| 387 | 387 |
| 388 // Use the SyncerThread implementation that matches up with the old pthread | 388 // Use the SyncerThread implementation that matches up with the old pthread |
| 389 // impl semantics, but using Chrome synchronization primitives. The only | 389 // impl semantics, but using Chrome synchronization primitives. The only |
| 390 // difference between this and the default is that we now have no timeout on | 390 // difference between this and the default is that we now have no timeout on |
| 391 // Stop(). Should only use if you experience problems with the default. | 391 // Stop(). Should only use if you experience problems with the default. |
| 392 const wchar_t kSyncerThreadTimedStop[] = L"syncer-thread-timed-stop"; | 392 const char kSyncerThreadTimedStop[] = "syncer-thread-timed-stop"; |
| 393 | 393 |
| 394 // Enable support for SDCH filtering (dictionary based expansion of content). | 394 // Enable support for SDCH filtering (dictionary based expansion of content). |
| 395 // Optional argument is *the* only domain name that will have SDCH suppport. | 395 // Optional argument is *the* only domain name that will have SDCH suppport. |
| 396 // Default is "-enable-sdch" to advertise SDCH on all domains. | 396 // Default is "-enable-sdch" to advertise SDCH on all domains. |
| 397 // Sample usage with argument: "-enable-sdch=.google.com" | 397 // Sample usage with argument: "-enable-sdch=.google.com" |
| 398 // SDCH is currently only supported server-side for searches on google.com. | 398 // SDCH is currently only supported server-side for searches on google.com. |
| 399 const wchar_t kSdchFilter[] = L"enable-sdch"; | 399 const char kSdchFilter[] = "enable-sdch"; |
| 400 | 400 |
| 401 // Enable user script support. | 401 // Enable user script support. |
| 402 const wchar_t kEnableUserScripts[] = L"enable-user-scripts"; | 402 const char kEnableUserScripts[] = "enable-user-scripts"; |
| 403 | 403 |
| 404 // Disable extensions. | 404 // Disable extensions. |
| 405 const wchar_t kDisableExtensions[] = L"disable-extensions"; | 405 const char kDisableExtensions[] = "disable-extensions"; |
| 406 | 406 |
| 407 // Frequency in seconds for Extensions auto-update. | 407 // Frequency in seconds for Extensions auto-update. |
| 408 const wchar_t kExtensionsUpdateFrequency[] = L"extensions-update-frequency"; | 408 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency"; |
| 409 | 409 |
| 410 // Load an extension from the specified directory. | 410 // Load an extension from the specified directory. |
| 411 const wchar_t kLoadExtension[] = L"load-extension"; | 411 const char kLoadExtension[] = "load-extension"; |
| 412 | 412 |
| 413 // Package an extension to a .crx installable file from a given directory. | 413 // Package an extension to a .crx installable file from a given directory. |
| 414 const wchar_t kPackExtension[] = L"pack-extension"; | 414 const char kPackExtension[] = "pack-extension"; |
| 415 | 415 |
| 416 // Optional PEM private key is to use in signing packaged .crx. | 416 // Optional PEM private key is to use in signing packaged .crx. |
| 417 const wchar_t kPackExtensionKey[] = L"pack-extension-key"; | 417 const char kPackExtensionKey[] = "pack-extension-key"; |
| 418 | 418 |
| 419 // Show extensions on top with toolbar. | 419 // Show extensions on top with toolbar. |
| 420 const wchar_t kShowExtensionsOnTop[] = L"show-extensions-on-top"; | 420 const char kShowExtensionsOnTop[] = "show-extensions-on-top"; |
| 421 | 421 |
| 422 // Load an NPAPI plugin from the specified path. | 422 // Load an NPAPI plugin from the specified path. |
| 423 const wchar_t kLoadPlugin[] = L"load-plugin"; | 423 const char kLoadPlugin[] = "load-plugin"; |
| 424 | 424 |
| 425 // directory to locate user scripts in as an over-ride of the default | 425 // directory to locate user scripts in as an over-ride of the default |
| 426 const wchar_t kUserScriptsDir[] = L"user-scripts-dir"; | 426 const char kUserScriptsDir[] = "user-scripts-dir"; |
| 427 | 427 |
| 428 // Causes the browser to launch directly in incognito mode. | 428 // Causes the browser to launch directly in incognito mode. |
| 429 const wchar_t kIncognito[] = L"incognito"; | 429 const char kIncognito[] = "incognito"; |
| 430 | 430 |
| 431 // Turns on the accessibility in the renderer. Off by default until | 431 // Turns on the accessibility in the renderer. Off by default until |
| 432 // http://b/issue?id=1432077 is fixed. | 432 // http://b/issue?id=1432077 is fixed. |
| 433 const wchar_t kEnableRendererAccessibility[] = | 433 const char kEnableRendererAccessibility[] = |
| 434 L"enable-renderer-accessibility"; | 434 "enable-renderer-accessibility"; |
| 435 | 435 |
| 436 // Pass the name of the current running automated test to Chrome. | 436 // Pass the name of the current running automated test to Chrome. |
| 437 const wchar_t kTestName[] = L"test-name"; | 437 const char kTestName[] = "test-name"; |
| 438 | 438 |
| 439 // On POSIX only: the contents of this flag are prepended to the renderer | 439 // On POSIX only: the contents of this flag are prepended to the renderer |
| 440 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". | 440 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". |
| 441 const wchar_t kRendererCmdPrefix[] = L"renderer-cmd-prefix"; | 441 const char kRendererCmdPrefix[] = "renderer-cmd-prefix"; |
| 442 | 442 |
| 443 // On POSIX only: the contents of this flag are prepended to the utility | 443 // On POSIX only: the contents of this flag are prepended to the utility |
| 444 // process command line. Useful values might be "valgrind" or "xterm -e gdb | 444 // process command line. Useful values might be "valgrind" or "xterm -e gdb |
| 445 // --args". | 445 // --args". |
| 446 const wchar_t kUtilityCmdPrefix[] = L"utility-cmd-prefix"; | 446 const char kUtilityCmdPrefix[] = "utility-cmd-prefix"; |
| 447 | 447 |
| 448 // On Windows only: use the old WinInet-based ftp implemetation. | 448 // On Windows only: use the old WinInet-based ftp implemetation. |
| 449 const wchar_t kWininetFtp[] = L"wininet-ftp"; | 449 const char kWininetFtp[] = "wininet-ftp"; |
| 450 | 450 |
| 451 // Enable Native Web Worker support | 451 // Enable Native Web Worker support |
| 452 const wchar_t kEnableNativeWebWorkers[] = L"enable-native-web-workers"; | 452 const char kEnableNativeWebWorkers[] = "enable-native-web-workers"; |
| 453 | 453 |
| 454 // Causes the worker process allocation to use as many processes as cores. | 454 // Causes the worker process allocation to use as many processes as cores. |
| 455 const wchar_t kWebWorkerProcessPerCore[] = L"web-worker-process-per-core"; | 455 const char kWebWorkerProcessPerCore[] = "web-worker-process-per-core"; |
| 456 | 456 |
| 457 // Causes workers to run together in one process, depending on their domains. | 457 // Causes workers to run together in one process, depending on their domains. |
| 458 // Note this is duplicated in webworkerclient_impl.cc | 458 // Note this is duplicated in webworkerclient_impl.cc |
| 459 const wchar_t kWebWorkerShareProcesses[] = L"web-worker-share-processes"; | 459 const char kWebWorkerShareProcesses[] = "web-worker-share-processes"; |
| 460 | 460 |
| 461 // Enables the bookmark menu. | 461 // Enables the bookmark menu. |
| 462 const wchar_t kBookmarkMenu[] = L"bookmark-menu"; | 462 const char kBookmarkMenu[] = "bookmark-menu"; |
| 463 | 463 |
| 464 // Enables experimental features for Spellchecker. Right now, the first | 464 // Enables experimental features for Spellchecker. Right now, the first |
| 465 // experimental feature is auto spell correct, which corrects words which are | 465 // experimental feature is auto spell correct, which corrects words which are |
| 466 // misppelled by typing the word with two consecutive letters swapped. The | 466 // misppelled by typing the word with two consecutive letters swapped. The |
| 467 // features that will be added next are: | 467 // features that will be added next are: |
| 468 // 1 - Allow multiple spellcheckers to work simultaneously. | 468 // 1 - Allow multiple spellcheckers to work simultaneously. |
| 469 // 2 - Allow automatic detection of spell check language. | 469 // 2 - Allow automatic detection of spell check language. |
| 470 // TODO(sidchat): Implement the above fetaures to work under this flag. | 470 // TODO(sidchat): Implement the above fetaures to work under this flag. |
| 471 const wchar_t kExperimentalSpellcheckerFeatures[] = | 471 const char kExperimentalSpellcheckerFeatures[] = |
| 472 L"experimental-spellchecker-features"; | 472 "experimental-spellchecker-features"; |
| 473 | 473 |
| 474 // Enables StatsTable, logging statistics to a global named shared memory table. | 474 // Enables StatsTable, logging statistics to a global named shared memory table. |
| 475 const wchar_t kEnableStatsTable[] = L"enable-stats-table"; | 475 const char kEnableStatsTable[] = "enable-stats-table"; |
| 476 | 476 |
| 477 // Replaces the audio IPC layer for <audio> and <video> with a mock audio | 477 // Replaces the audio IPC layer for <audio> and <video> with a mock audio |
| 478 // device, useful when using remote desktop or machines without sound cards. | 478 // device, useful when using remote desktop or machines without sound cards. |
| 479 // This is temporary until we fix the underlying problem. | 479 // This is temporary until we fix the underlying problem. |
| 480 // | 480 // |
| 481 // TODO(scherkus): remove --disable-audio when we have a proper fallback | 481 // TODO(scherkus): remove --disable-audio when we have a proper fallback |
| 482 // mechanism. | 482 // mechanism. |
| 483 const wchar_t kDisableAudio[] = L"disable-audio"; | 483 const char kDisableAudio[] = "disable-audio"; |
| 484 | 484 |
| 485 // Replaces the buffered data source for <audio> and <video> with a simplified | 485 // Replaces the buffered data source for <audio> and <video> with a simplified |
| 486 // resource loader that downloads the entire resource into memory. | 486 // resource loader that downloads the entire resource into memory. |
| 487 // | 487 // |
| 488 // TODO(scherkus): remove --simple-data-source when our media resource loading | 488 // TODO(scherkus): remove --simple-data-source when our media resource loading |
| 489 // is cleaned up and playback testing completed. | 489 // is cleaned up and playback testing completed. |
| 490 const wchar_t kSimpleDataSource[] = L"simple-data-source"; | 490 const char kSimpleDataSource[] = "simple-data-source"; |
| 491 | 491 |
| 492 // Some field tests may rendomized in the browser, and the randomly selected | 492 // Some field tests may rendomized in the browser, and the randomly selected |
| 493 // outcome needs to be propogated to the renderer. For instance, this is used | 493 // outcome needs to be propogated to the renderer. For instance, this is used |
| 494 // to modify histograms recorded in the renderer, or to get the renderer to | 494 // to modify histograms recorded in the renderer, or to get the renderer to |
| 495 // also set of its state (initialize, or not initialize components) to match the | 495 // also set of its state (initialize, or not initialize components) to match the |
| 496 // experiment(s). | 496 // experiment(s). |
| 497 // The argument is a string-ized list of experiment names, and the associated | 497 // The argument is a string-ized list of experiment names, and the associated |
| 498 // value that was randomly selected. In the recent implementetaion, the | 498 // value that was randomly selected. In the recent implementetaion, the |
| 499 // persistent representation generated by field_trial.cc and later decoded, is a | 499 // persistent representation generated by field_trial.cc and later decoded, is a |
| 500 // list of name and value pairs, separated by slashes. See field trial.cc for | 500 // list of name and value pairs, separated by slashes. See field trial.cc for |
| 501 // current details. | 501 // current details. |
| 502 const wchar_t kForceFieldTestNameAndValue[] = L"force-fieldtest"; | 502 const char kForceFieldTestNameAndValue[] = "force-fieldtest"; |
| 503 | 503 |
| 504 // Allows the new tab page resource to be loaded from a local HTML file. This | 504 // Allows the new tab page resource to be loaded from a local HTML file. This |
| 505 // should be a path to the HTML file that you want to use for the new tab page. | 505 // should be a path to the HTML file that you want to use for the new tab page. |
| 506 // It is used for manually testing new versions of the new tab page only, | 506 // It is used for manually testing new versions of the new tab page only, |
| 507 // performance will be poor. | 507 // performance will be poor. |
| 508 const wchar_t kNewTabPage[] = L"new-tab-page"; | 508 const char kNewTabPage[] = "new-tab-page"; |
| 509 | 509 |
| 510 // Switches back to the old new tab page. | 510 // Switches back to the old new tab page. |
| 511 const wchar_t kOldNewTabPage[] = L"old-new-tab-page"; | 511 const char kOldNewTabPage[] = "old-new-tab-page"; |
| 512 | 512 |
| 513 // Enables the backend service for web resources, used in the new tab page for | 513 // Enables the backend service for web resources, used in the new tab page for |
| 514 // loading tips and recommendations from a JSON feed. | 514 // loading tips and recommendations from a JSON feed. |
| 515 const wchar_t kDisableWebResources[] = L"disable-web-resources"; | 515 const char kDisableWebResources[] = "disable-web-resources"; |
| 516 | 516 |
| 517 // Whether we should prevent the new tab page from showing the first run | 517 // Whether we should prevent the new tab page from showing the first run |
| 518 // notification. | 518 // notification. |
| 519 const wchar_t kDisableNewTabFirstRun[] = L"disable-new-tab-first-run"; | 519 const char kDisableNewTabFirstRun[] = "disable-new-tab-first-run"; |
| 520 | 520 |
| 521 // Disables the default browser check. Useful for UI/browser tests where we want | 521 // Disables the default browser check. Useful for UI/browser tests where we want |
| 522 // to avoid having the default browser info-bar displayed. | 522 // to avoid having the default browser info-bar displayed. |
| 523 const wchar_t kNoDefaultBrowserCheck[] = L"no-default-browser-check"; | 523 const char kNoDefaultBrowserCheck[] = "no-default-browser-check"; |
| 524 | 524 |
| 525 // Enables the Privacy Blacklist with the specified data file. | 525 // Enables the Privacy Blacklist with the specified data file. |
| 526 // The file contains data from all imported blacklists. | 526 // The file contains data from all imported blacklists. |
| 527 const wchar_t kPrivacyBlacklist[] = L"privacy-blacklist"; | 527 const char kPrivacyBlacklist[] = "privacy-blacklist"; |
| 528 | 528 |
| 529 // Enables the benchmarking extensions. | 529 // Enables the benchmarking extensions. |
| 530 const wchar_t kEnableBenchmarking[] = L"enable-benchmarking"; | 530 const char kEnableBenchmarking[] = "enable-benchmarking"; |
| 531 | 531 |
| 532 // The prefix used when starting the zygote process. (i.e. 'gdb --args') | 532 // The prefix used when starting the zygote process. (i.e. 'gdb --args') |
| 533 const wchar_t kZygoteCmdPrefix[] = L"zygote-cmd-prefix"; | 533 const char kZygoteCmdPrefix[] = "zygote-cmd-prefix"; |
| 534 | 534 |
| 535 // Enables using ThumbnailStore instead of ThumbnailDatabase for setting and | 535 // Enables using ThumbnailStore instead of ThumbnailDatabase for setting and |
| 536 // getting thumbnails for the new tab page. | 536 // getting thumbnails for the new tab page. |
| 537 const wchar_t kThumbnailStore[] = L"thumbnail-store"; | 537 const char kThumbnailStore[] = "thumbnail-store"; |
| 538 | 538 |
| 539 // Experimental. Shows a dialog asking the user to try chrome. This flag | 539 // Experimental. Shows a dialog asking the user to try chrome. This flag |
| 540 // is to be used only by the upgrade process. | 540 // is to be used only by the upgrade process. |
| 541 const wchar_t kTryChromeAgain[] = L"try-chrome-again"; | 541 const char kTryChromeAgain[] = "try-chrome-again"; |
| 542 | 542 |
| 543 // The file descriptor limit is set to the value of this switch, subject to the | 543 // The file descriptor limit is set to the value of this switch, subject to the |
| 544 // OS hard limits. Useful for testing that file descriptor exhaustion is handled | 544 // OS hard limits. Useful for testing that file descriptor exhaustion is handled |
| 545 // gracefully. | 545 // gracefully. |
| 546 const wchar_t kFileDescriptorLimit[] = L"file-descriptor-limit"; | 546 const char kFileDescriptorLimit[] = "file-descriptor-limit"; |
| 547 | 547 |
| 548 // On Windows, converts the page to the currently-installed monitor profile. | 548 // On Windows, converts the page to the currently-installed monitor profile. |
| 549 // This does NOT enable color management for images. The source is still assumed | 549 // This does NOT enable color management for images. The source is still assumed |
| 550 // to be sRGB. | 550 // to be sRGB. |
| 551 const wchar_t kEnableMonitorProfile[] = L"enable-monitor-profile"; | 551 const char kEnableMonitorProfile[] = "enable-monitor-profile"; |
| 552 | 552 |
| 553 // Disable WebKit's XSSAuditor. The XSSAuditor mitigates reflective XSS. | 553 // Disable WebKit's XSSAuditor. The XSSAuditor mitigates reflective XSS. |
| 554 const wchar_t kDisableXSSAuditor[] = L"disable-xss-auditor"; | 554 const char kDisableXSSAuditor[] = "disable-xss-auditor"; |
| 555 | 555 |
| 556 #if defined(OS_POSIX) | 556 #if defined(OS_POSIX) |
| 557 // A flag, generated internally by Chrome for renderer and other helper process | 557 // A flag, generated internally by Chrome for renderer and other helper process |
| 558 // command lines on Linux and Mac. It tells the helper process to enable crash | 558 // command lines on Linux and Mac. It tells the helper process to enable crash |
| 559 // dumping and reporting, because helpers cannot access the profile or other | 559 // dumping and reporting, because helpers cannot access the profile or other |
| 560 // files needed to make this decision. | 560 // files needed to make this decision. |
| 561 const wchar_t kEnableCrashReporter[] = L"enable-crash-reporter"; | 561 const char kEnableCrashReporter[] = "enable-crash-reporter"; |
| 562 #endif | 562 #endif |
| 563 | 563 |
| 564 // Enables the new Tabstrip on Windows. | 564 // Enables the new Tabstrip on Windows. |
| 565 const wchar_t kEnableTabtastic2[] = L"enable-tabtastic2"; | 565 const char kEnableTabtastic2[] = "enable-tabtastic2"; |
| 566 | 566 |
| 567 // Number of tabs to pin on startup. This is not use if session restore is | 567 // Number of tabs to pin on startup. This is not use if session restore is |
| 568 // enabled. | 568 // enabled. |
| 569 const wchar_t kPinnedTabCount[] = L"pinned-tab-count"; | 569 const char kPinnedTabCount[] = "pinned-tab-count"; |
| 570 | 570 |
| 571 // Enables the showing of an info-bar instructing user they can search directly | 571 // Enables the showing of an info-bar instructing user they can search directly |
| 572 // from the omnibox. | 572 // from the omnibox. |
| 573 const wchar_t kSearchInOmniboxHint[] = L"search-in-omnibox-hint"; | 573 const char kSearchInOmniboxHint[] = "search-in-omnibox-hint"; |
| 574 | 574 |
| 575 // Enable local storage. Still buggy. | 575 // Enable local storage. Still buggy. |
| 576 const wchar_t kEnableLocalStorage[] = L"enable-local-storage"; | 576 const char kEnableLocalStorage[] = "enable-local-storage"; |
| 577 | 577 |
| 578 // Enable session storage. Still buggy. | 578 // Enable session storage. Still buggy. |
| 579 const wchar_t kEnableSessionStorage[] = L"enable-session-storage"; | 579 const char kEnableSessionStorage[] = "enable-session-storage"; |
| 580 | 580 |
| 581 // Allows debugging of sandboxed processes (see zygote_main_linux.cc). | 581 // Allows debugging of sandboxed processes (see zygote_main_linux.cc). |
| 582 const wchar_t kAllowSandboxDebugging[] = L"allow-sandbox-debugging"; | 582 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging"; |
| 583 | 583 |
| 584 #if defined(OS_MACOSX) | 584 #if defined(OS_MACOSX) |
| 585 // Cause the OS X sandbox write to syslog every time an access to a resource | 585 // Cause the OS X sandbox write to syslog every time an access to a resource |
| 586 // is denied by the sandbox. | 586 // is denied by the sandbox. |
| 587 const wchar_t kEnableSandboxLogging[] = L"enable-sandbox-logging"; | 587 const char kEnableSandboxLogging[] = "enable-sandbox-logging"; |
| 588 #endif | 588 #endif |
| 589 | 589 |
| 590 // Enable the seccomp sandbox (Linux only) | 590 // Enable the seccomp sandbox (Linux only) |
| 591 const wchar_t kEnableSeccompSandbox[] = L"enable-seccomp-sandbox"; | 591 const char kEnableSeccompSandbox[] = "enable-seccomp-sandbox"; |
| 592 | 592 |
| 593 // Triggers a pletora of diagnostic modes. | 593 // Triggers a pletora of diagnostic modes. |
| 594 const wchar_t kDiagnostics[] = L"diagnostics"; | 594 const char kDiagnostics[] = "diagnostics"; |
| 595 | 595 |
| 596 // Disables the custom JumpList on Windows 7. | 596 // Disables the custom JumpList on Windows 7. |
| 597 const wchar_t kDisableCustomJumpList[] = L"disable-custom-jumplist"; | 597 const char kDisableCustomJumpList[] = "disable-custom-jumplist"; |
| 598 | 598 |
| 599 // Enables HTML5 DB support. | 599 // Enables HTML5 DB support. |
| 600 const wchar_t kEnableDatabases[] = L"enable-databases"; | 600 const char kEnableDatabases[] = "enable-databases"; |
| 601 | 601 |
| 602 // Enable ApplicationCache. Still mostly not there. | 602 // Enable ApplicationCache. Still mostly not there. |
| 603 const wchar_t kEnableApplicationCache[] = L"enable-application-cache"; | 603 const char kEnableApplicationCache[] = "enable-application-cache"; |
| 604 | 604 |
| 605 // Override the default server used for profile sync. | 605 // Override the default server used for profile sync. |
| 606 const wchar_t kSyncServiceURL[] = L"sync-url"; | 606 const char kSyncServiceURL[] = "sync-url"; |
| 607 | 607 |
| 608 #if defined(OS_CHROMEOS) | 608 #if defined(OS_CHROMEOS) |
| 609 // The name of the pipe over which the Chrome OS login manager will send | 609 // The name of the pipe over which the Chrome OS login manager will send |
| 610 // single-sign-on cookies. | 610 // single-sign-on cookies. |
| 611 const wchar_t kCookiePipe[] = L"cookie-pipe"; | 611 const char kCookiePipe[] = "cookie-pipe"; |
| 612 | 612 |
| 613 // Enable the redirection of viewable document requests to the Google | 613 // Enable the redirection of viewable document requests to the Google |
| 614 // Document Viewer. | 614 // Document Viewer. |
| 615 const wchar_t kEnableGView[] = L"enable-gview"; | 615 const char kEnableGView[] = "enable-gview"; |
| 616 #endif | 616 #endif |
| 617 | 617 |
| 618 // Enable experimental support for cached byte-ranges. | 618 // Enable experimental support for cached byte-ranges. |
| 619 const wchar_t kEnableByteRangeSupport[] = L"enable-byte-range-support"; | 619 const char kEnableByteRangeSupport[] = "enable-byte-range-support"; |
| 620 | 620 |
| 621 // Explicitly allow additional ports using a comma separated list of port | 621 // Explicitly allow additional ports using a comma separated list of port |
| 622 // numbers. | 622 // numbers. |
| 623 const wchar_t kExplicitlyAllowedPorts[] = L"explicitly-allowed-ports"; | 623 const char kExplicitlyAllowedPorts[] = "explicitly-allowed-ports"; |
| 624 | 624 |
| 625 // Activate (make foreground) myself on launch. Helpful when Chrome | 625 // Activate (make foreground) myself on launch. Helpful when Chrome |
| 626 // is launched on the command line (e.g. by Selenium). Only needed on Mac. | 626 // is launched on the command line (e.g. by Selenium). Only needed on Mac. |
| 627 const wchar_t kActivateOnLaunch[] = L"activate-on-launch"; | 627 const char kActivateOnLaunch[] = "activate-on-launch"; |
| 628 | 628 |
| 629 // Enable experimental WebGL support. | 629 // Enable experimental WebGL support. |
| 630 const wchar_t kEnableExperimentalWebGL[] = L"enable-webgl"; | 630 const char kEnableExperimentalWebGL[] = "enable-webgl"; |
| 631 | 631 |
| 632 // Enabled desktop notifications. | 632 // Enabled desktop notifications. |
| 633 const wchar_t kEnableDesktopNotifications[] = | 633 const char kEnableDesktopNotifications[] = "enable-desktop-notifications"; |
| 634 L"enable-desktop-notifications"; | |
| 635 | 634 |
| 636 // Enable Web Sockets support. | 635 // Enable Web Sockets support. |
| 637 const wchar_t kEnableWebSockets[] = L"enable-web-sockets"; | 636 const char kEnableWebSockets[] = "enable-web-sockets"; |
| 638 | 637 |
| 639 } // namespace switches | 638 } // namespace switches |
| OLD | NEW |