| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 // Disables the menu on the NTP for accessing sessions from other devices. | 271 // Disables the menu on the NTP for accessing sessions from other devices. |
| 272 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; | 272 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; |
| 273 | 273 |
| 274 // Disable auto-reload of error pages if offline. | 274 // Disable auto-reload of error pages if offline. |
| 275 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; | 275 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; |
| 276 | 276 |
| 277 // Disable only auto-reloading error pages when the tab is visible. | 277 // Disable only auto-reloading error pages when the tab is visible. |
| 278 const char kDisableOfflineAutoReloadVisibleOnly[] = | 278 const char kDisableOfflineAutoReloadVisibleOnly[] = |
| 279 "disable-offline-auto-reload-visible-only"; | 279 "disable-offline-auto-reload-visible-only"; |
| 280 | 280 |
| 281 // Disable the origin chip. | |
| 282 const char kDisableOriginChip[] = "disable-origin-chip"; | |
| 283 | |
| 284 // Disable the out of process PDF plugin. | 281 // Disable the out of process PDF plugin. |
| 285 const char kDisableOutOfProcessPdf[] = "disable-out-of-process-pdf"; | 282 const char kDisableOutOfProcessPdf[] = "disable-out-of-process-pdf"; |
| 286 | 283 |
| 287 // Disable the setting to prompt the user for their OS account password before | 284 // Disable the setting to prompt the user for their OS account password before |
| 288 // revealing plaintext passwords in the password manager. | 285 // revealing plaintext passwords in the password manager. |
| 289 const char kDisablePasswordManagerReauthentication[] = | 286 const char kDisablePasswordManagerReauthentication[] = |
| 290 "disable-password-manager-reauthentication"; | 287 "disable-password-manager-reauthentication"; |
| 291 | 288 |
| 292 // Disable the new material UI - requires out of process PDF plugin. | 289 // Disable the new material UI - requires out of process PDF plugin. |
| 293 const char kDisablePdfMaterialUI[] = "disable-pdf-material-ui"; | 290 const char kDisablePdfMaterialUI[] = "disable-pdf-material-ui"; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 323 // This only has an effect if QUIC protocol is enabled. | 320 // This only has an effect if QUIC protocol is enabled. |
| 324 const char kDisableQuicPacing[] = "disable-quic-pacing"; | 321 const char kDisableQuicPacing[] = "disable-quic-pacing"; |
| 325 | 322 |
| 326 // Disable use of Chromium's port selection for the ephemeral port via bind(). | 323 // Disable use of Chromium's port selection for the ephemeral port via bind(). |
| 327 // This only has an effect if QUIC protocol is enabled. | 324 // This only has an effect if QUIC protocol is enabled. |
| 328 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; | 325 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; |
| 329 | 326 |
| 330 // Prevents the save password bubble from being enabled. | 327 // Prevents the save password bubble from being enabled. |
| 331 const char kDisableSavePasswordBubble[] = "disable-save-password-bubble"; | 328 const char kDisableSavePasswordBubble[] = "disable-save-password-bubble"; |
| 332 | 329 |
| 333 // Disables the "search button in omnibox" experiment. | |
| 334 const char kDisableSearchButtonInOmnibox[] = | |
| 335 "disable-search-button-in-omnibox"; | |
| 336 | |
| 337 // Disables using bubbles for session restore request. | 330 // Disables using bubbles for session restore request. |
| 338 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; | 331 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; |
| 339 | 332 |
| 340 // Disables the suggestions service. | 333 // Disables the suggestions service. |
| 341 const char kDisableSuggestionsService[] = "disable-suggestions-service"; | 334 const char kDisableSuggestionsService[] = "disable-suggestions-service"; |
| 342 | 335 |
| 343 // Disables the supervised user host blacklist. | 336 // Disables the supervised user host blacklist. |
| 344 const char kDisableSupervisedUserBlacklist[] = | 337 const char kDisableSupervisedUserBlacklist[] = |
| 345 "disable-supervised-user-blacklist"; | 338 "disable-supervised-user-blacklist"; |
| 346 | 339 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 | 473 |
| 481 // Only auto-reload error pages when the tab is visible. | 474 // Only auto-reload error pages when the tab is visible. |
| 482 const char kEnableOfflineAutoReloadVisibleOnly[] = | 475 const char kEnableOfflineAutoReloadVisibleOnly[] = |
| 483 "enable-offline-auto-reload-visible-only"; | 476 "enable-offline-auto-reload-visible-only"; |
| 484 | 477 |
| 485 // Enable/Disable offering a "Load stale copy" option to the user if offline. | 478 // Enable/Disable offering a "Load stale copy" option to the user if offline. |
| 486 const char kEnableOfflineLoadStaleCache[] = "enable-offline-load-stale-cache"; | 479 const char kEnableOfflineLoadStaleCache[] = "enable-offline-load-stale-cache"; |
| 487 const char kDisableOfflineLoadStaleCache[] = | 480 const char kDisableOfflineLoadStaleCache[] = |
| 488 "disable-offline-load-stale-cache"; | 481 "disable-offline-load-stale-cache"; |
| 489 | 482 |
| 490 // Controls which branch of the origin chip in location bar experiment is | |
| 491 // enabled. | |
| 492 // | |
| 493 // We're using independent flags here (as opposed to a common flag with | |
| 494 // different values) to be able to enable/disable the entire experience | |
| 495 // associated with this feature server-side from the FieldTrial (the complete | |
| 496 // experience includes other flag changes as well). It is not currently possible | |
| 497 // to do that with "flag=value" flags. | |
| 498 const char kEnableOriginChipAlways[] = "enable-origin-chip-always"; | |
| 499 const char kEnableOriginChipOnSrp[] = "enable-origin-chip-on-srp"; | |
| 500 | |
| 501 // Enable the out of process PDF plugin. | 483 // Enable the out of process PDF plugin. |
| 502 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf"; | 484 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf"; |
| 503 | 485 |
| 504 // Enables panels (always on-top docked pop-up windows). | 486 // Enables panels (always on-top docked pop-up windows). |
| 505 const char kEnablePanels[] = "enable-panels"; | 487 const char kEnablePanels[] = "enable-panels"; |
| 506 | 488 |
| 507 // Enable the new material UI - requires out of process PDF plugin. | 489 // Enable the new material UI - requires out of process PDF plugin. |
| 508 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui"; | 490 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui"; |
| 509 | 491 |
| 510 // Enables presenting plugin placeholder content as shadow DOM. | 492 // Enables presenting plugin placeholder content as shadow DOM. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 // Enables context-sensitive reader mode button in the toolbar. | 527 // Enables context-sensitive reader mode button in the toolbar. |
| 546 const char kEnableReaderModeToolbarIcon[] = | 528 const char kEnableReaderModeToolbarIcon[] = |
| 547 "enable-reader-mode-toolbar-icon"; | 529 "enable-reader-mode-toolbar-icon"; |
| 548 | 530 |
| 549 // Enables save password prompt bubble. | 531 // Enables save password prompt bubble. |
| 550 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble"; | 532 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble"; |
| 551 | 533 |
| 552 // Enables SDCH for https schemes. | 534 // Enables SDCH for https schemes. |
| 553 const char kEnableSdchOverHttps[] = "enable-sdch-over-https"; | 535 const char kEnableSdchOverHttps[] = "enable-sdch-over-https"; |
| 554 | 536 |
| 555 // Controls which branch of the "search button in omnibox" experiment is | |
| 556 // enabled. | |
| 557 // | |
| 558 // We're using independent flags here (as opposed to a common flag with | |
| 559 // different values) to be able to enable/disable the entire experience | |
| 560 // associated with this feature server-side from the FieldTrial (the complete | |
| 561 // experience includes other flag changes as well). It is not currently possible | |
| 562 // to do that with "flag=value" flags. | |
| 563 const char kEnableSearchButtonInOmniboxAlways[] = | |
| 564 "enable-search-button-in-omnibox-always"; | |
| 565 const char kEnableSearchButtonInOmniboxForStr[] = | |
| 566 "enable-search-button-in-omnibox-for-str"; | |
| 567 const char kEnableSearchButtonInOmniboxForStrOrIip[] = | |
| 568 "enable-search-button-in-omnibox-for-str-or-iip"; | |
| 569 | |
| 570 // Enables using bubbles for session restore request instead of infobars. | 537 // Enables using bubbles for session restore request instead of infobars. |
| 571 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; | 538 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; |
| 572 | 539 |
| 573 // Enables the deprecated window.showModalDialog API. This is slated for | 540 // Enables the deprecated window.showModalDialog API. This is slated for |
| 574 // removal. | 541 // removal. |
| 575 const char kEnableShowModalDialog[] = "enable-show-modal-dialog"; | 542 const char kEnableShowModalDialog[] = "enable-show-modal-dialog"; |
| 576 | 543 |
| 577 // Enable or disable settings in a separate browser window per profile | 544 // Enable or disable settings in a separate browser window per profile |
| 578 // (see SettingsWindowEnabled() below). | 545 // (see SettingsWindowEnabled() below). |
| 579 const char kEnableSettingsWindow[] = "enable-settings-window"; | 546 const char kEnableSettingsWindow[] = "enable-settings-window"; |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1406 | 1373 |
| 1407 // ----------------------------------------------------------------------------- | 1374 // ----------------------------------------------------------------------------- |
| 1408 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1375 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1409 // | 1376 // |
| 1410 // You were going to just dump your switches here, weren't you? Instead, please | 1377 // You were going to just dump your switches here, weren't you? Instead, please |
| 1411 // put them in alphabetical order above, or in order inside the appropriate | 1378 // put them in alphabetical order above, or in order inside the appropriate |
| 1412 // ifdef at the bottom. The order should match the header. | 1379 // ifdef at the bottom. The order should match the header. |
| 1413 // ----------------------------------------------------------------------------- | 1380 // ----------------------------------------------------------------------------- |
| 1414 | 1381 |
| 1415 } // namespace switches | 1382 } // namespace switches |
| OLD | NEW |