OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 | 9 |
10 namespace switches { | 10 namespace switches { |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // disable that check. This switch is used during automated testing. | 321 // disable that check. This switch is used during automated testing. |
322 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; | 322 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; |
323 | 323 |
324 // Disables support for the QUIC protocol. | 324 // Disables support for the QUIC protocol. |
325 const char kDisableQuic[] = "disable-quic"; | 325 const char kDisableQuic[] = "disable-quic"; |
326 | 326 |
327 // Disable use of Chromium's port selection for the ephemeral port via bind(). | 327 // Disable use of Chromium's port selection for the ephemeral port via bind(). |
328 // This only has an effect if QUIC protocol is enabled. | 328 // This only has an effect if QUIC protocol is enabled. |
329 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; | 329 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; |
330 | 330 |
331 // Prevents the save password bubble from being enabled. | |
332 const char kDisableSavePasswordBubble[] = "disable-save-password-bubble"; | |
333 | |
334 // Prevents SDCH persistence from being used. | 331 // Prevents SDCH persistence from being used. |
335 const char kDisableSdchPersistence[] = "disable-sdch-persistence"; | 332 const char kDisableSdchPersistence[] = "disable-sdch-persistence"; |
336 | 333 |
337 // Disables using bubbles for session restore request. | 334 // Disables using bubbles for session restore request. |
338 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; | 335 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; |
339 | 336 |
340 // Disables the Site Engagement service, which records interaction with sites | 337 // Disables the Site Engagement service, which records interaction with sites |
341 // and allocates certain resources accordingly. | 338 // and allocates certain resources accordingly. |
342 const char kDisableSiteEngagementService[] = "disable-site-engagement-service"; | 339 const char kDisableSiteEngagementService[] = "disable-site-engagement-service"; |
343 | 340 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 const char kEnablePushApiBackgroundMode[] = "enable-push-api-background-mode"; | 509 const char kEnablePushApiBackgroundMode[] = "enable-push-api-background-mode"; |
513 const char kDisablePushApiBackgroundMode[] = "disable-push-api-background-mode"; | 510 const char kDisablePushApiBackgroundMode[] = "disable-push-api-background-mode"; |
514 | 511 |
515 // Enables support for the QUIC protocol. This is a temporary testing flag. | 512 // Enables support for the QUIC protocol. This is a temporary testing flag. |
516 const char kEnableQuic[] = "enable-quic"; | 513 const char kEnableQuic[] = "enable-quic"; |
517 | 514 |
518 // Enable use of Chromium's port selection for the ephemeral port via bind(). | 515 // Enable use of Chromium's port selection for the ephemeral port via bind(). |
519 // This only has an effect if QUIC protocol is enabled. | 516 // This only has an effect if QUIC protocol is enabled. |
520 const char kEnableQuicPortSelection[] = "enable-quic-port-selection"; | 517 const char kEnableQuicPortSelection[] = "enable-quic-port-selection"; |
521 | 518 |
522 // Enables save password prompt bubble. | |
523 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble"; | |
524 | |
525 // Enables SDCH persistence. | 519 // Enables SDCH persistence. |
526 const char kEnableSdchPersistence[] = "enable-sdch-persistence"; | 520 const char kEnableSdchPersistence[] = "enable-sdch-persistence"; |
527 | 521 |
528 // Enables using bubbles for session restore request instead of infobars. | 522 // Enables using bubbles for session restore request instead of infobars. |
529 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; | 523 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; |
530 | 524 |
531 // Enable or disable settings in a separate browser window per profile | 525 // Enable or disable settings in a separate browser window per profile |
532 // (see SettingsWindowEnabled() below). | 526 // (see SettingsWindowEnabled() below). |
533 const char kEnableSettingsWindow[] = "enable-settings-window"; | 527 const char kEnableSettingsWindow[] = "enable-settings-window"; |
534 const char kDisableSettingsWindow[] = "disable-settings-window"; | 528 const char kDisableSettingsWindow[] = "disable-settings-window"; |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 // Disables app shim creation for hosted apps on Mac. | 1203 // Disables app shim creation for hosted apps on Mac. |
1210 const char kDisableHostedAppShimCreation[] = "disable-hosted-app-shim-creation"; | 1204 const char kDisableHostedAppShimCreation[] = "disable-hosted-app-shim-creation"; |
1211 | 1205 |
1212 // Prevents hosted apps from being opened in windows on Mac. | 1206 // Prevents hosted apps from being opened in windows on Mac. |
1213 const char kDisableHostedAppsInWindows[] = "disable-hosted-apps-in-windows"; | 1207 const char kDisableHostedAppsInWindows[] = "disable-hosted-apps-in-windows"; |
1214 | 1208 |
1215 // Disables use of toolkit-views based native app windows. | 1209 // Disables use of toolkit-views based native app windows. |
1216 const char kDisableMacViewsNativeAppWindows[] = | 1210 const char kDisableMacViewsNativeAppWindows[] = |
1217 "disable-mac-views-native-app-windows"; | 1211 "disable-mac-views-native-app-windows"; |
1218 | 1212 |
| 1213 // Prevents the save password bubble from being enabled. |
| 1214 const char kDisableSavePasswordBubble[] = "disable-save-password-bubble"; |
| 1215 |
1219 // Disables Translate experimental new UX which replaces the infobar. | 1216 // Disables Translate experimental new UX which replaces the infobar. |
1220 const char kDisableTranslateNewUX[] = "disable-translate-new-ux"; | 1217 const char kDisableTranslateNewUX[] = "disable-translate-new-ux"; |
1221 | 1218 |
1222 // Enable the toolkit-views App Info dialog for Mac. This is accessible from | 1219 // Enable the toolkit-views App Info dialog for Mac. This is accessible from |
1223 // chrome://apps and chrome://extensions and is already enabled on non-mac. | 1220 // chrome://apps and chrome://extensions and is already enabled on non-mac. |
1224 const char kEnableAppInfoDialogMac[] = "enable-app-info-dialog-mac"; | 1221 const char kEnableAppInfoDialogMac[] = "enable-app-info-dialog-mac"; |
1225 | 1222 |
1226 // Enables custom Cmd+` window cycling for platform apps and hosted apps. | 1223 // Enables custom Cmd+` window cycling for platform apps and hosted apps. |
1227 const char kEnableAppWindowCycling[] = "enable-app-window-cycling"; | 1224 const char kEnableAppWindowCycling[] = "enable-app-window-cycling"; |
1228 | 1225 |
1229 // Allows hosted apps to be opened in windows on Mac. | 1226 // Allows hosted apps to be opened in windows on Mac. |
1230 const char kEnableHostedAppsInWindows[] = "enable-hosted-apps-in-windows"; | 1227 const char kEnableHostedAppsInWindows[] = "enable-hosted-apps-in-windows"; |
1231 | 1228 |
1232 // Enables use of toolkit-views based native app windows. | 1229 // Enables use of toolkit-views based native app windows. |
1233 const char kEnableMacViewsNativeAppWindows[] = | 1230 const char kEnableMacViewsNativeAppWindows[] = |
1234 "enable-mac-views-native-app-windows"; | 1231 "enable-mac-views-native-app-windows"; |
1235 | 1232 |
1236 // Causes Chrome to use an equivalent toolkit-views version of a browser dialog | 1233 // Causes Chrome to use an equivalent toolkit-views version of a browser dialog |
1237 // when available, rather than a Cocoa one. | 1234 // when available, rather than a Cocoa one. |
1238 const char kEnableMacViewsDialogs[] = "enable-mac-views-dialogs"; | 1235 const char kEnableMacViewsDialogs[] = "enable-mac-views-dialogs"; |
1239 | 1236 |
| 1237 // Enables save password prompt bubble. |
| 1238 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble"; |
| 1239 |
1240 // Enables Translate experimental new UX which replaces the infobar. | 1240 // Enables Translate experimental new UX which replaces the infobar. |
1241 const char kEnableTranslateNewUX[] = "enable-translate-new-ux"; | 1241 const char kEnableTranslateNewUX[] = "enable-translate-new-ux"; |
1242 | 1242 |
1243 // This is how the metrics client ID is passed from the browser process to its | 1243 // This is how the metrics client ID is passed from the browser process to its |
1244 // children. With Crashpad, the metrics client ID is distinct from the crash | 1244 // children. With Crashpad, the metrics client ID is distinct from the crash |
1245 // client ID. | 1245 // client ID. |
1246 const char kMetricsClientID[] = "metrics-client-id"; | 1246 const char kMetricsClientID[] = "metrics-client-id"; |
1247 | 1247 |
1248 // A process type (switches::kProcessType) that relaunches the browser. See | 1248 // A process type (switches::kProcessType) that relaunches the browser. See |
1249 // chrome/browser/mac/relauncher.h. | 1249 // chrome/browser/mac/relauncher.h. |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1378 | 1378 |
1379 // ----------------------------------------------------------------------------- | 1379 // ----------------------------------------------------------------------------- |
1380 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1380 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1381 // | 1381 // |
1382 // You were going to just dump your switches here, weren't you? Instead, please | 1382 // You were going to just dump your switches here, weren't you? Instead, please |
1383 // put them in alphabetical order above, or in order inside the appropriate | 1383 // put them in alphabetical order above, or in order inside the appropriate |
1384 // ifdef at the bottom. The order should match the header. | 1384 // ifdef at the bottom. The order should match the header. |
1385 // ----------------------------------------------------------------------------- | 1385 // ----------------------------------------------------------------------------- |
1386 | 1386 |
1387 } // namespace switches | 1387 } // namespace switches |
OLD | NEW |