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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 // Disables the Material Design NTP. | 286 // Disables the Material Design NTP. |
287 const char kDisableMaterialDesignNTP[] = "disable-material-design-ntp"; | 287 const char kDisableMaterialDesignNTP[] = "disable-material-design-ntp"; |
288 | 288 |
289 // Disable auto-reload of error pages if offline. | 289 // Disable auto-reload of error pages if offline. |
290 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; | 290 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; |
291 | 291 |
292 // Disable only auto-reloading error pages when the tab is visible. | 292 // Disable only auto-reloading error pages when the tab is visible. |
293 const char kDisableOfflineAutoReloadVisibleOnly[] = | 293 const char kDisableOfflineAutoReloadVisibleOnly[] = |
294 "disable-offline-auto-reload-visible-only"; | 294 "disable-offline-auto-reload-visible-only"; |
295 | 295 |
296 // Disable the origin chip. | |
297 const char kDisableOriginChip[] = "disable-origin-chip"; | |
298 | |
299 // Disable the out of process PDF plugin. | 296 // Disable the out of process PDF plugin. |
300 const char kDisableOutOfProcessPdf[] = "disable-out-of-process-pdf"; | 297 const char kDisableOutOfProcessPdf[] = "disable-out-of-process-pdf"; |
301 | 298 |
302 // Disable the setting to prompt the user for their OS account password before | 299 // Disable the setting to prompt the user for their OS account password before |
303 // revealing plaintext passwords in the password manager. | 300 // revealing plaintext passwords in the password manager. |
304 const char kDisablePasswordManagerReauthentication[] = | 301 const char kDisablePasswordManagerReauthentication[] = |
305 "disable-password-manager-reauthentication"; | 302 "disable-password-manager-reauthentication"; |
306 | 303 |
307 // Enables searching for people from the apps list search box. | 304 // Enables searching for people from the apps list search box. |
308 const char kDisablePeopleSearch[] = "disable-people-search"; | 305 const char kDisablePeopleSearch[] = "disable-people-search"; |
(...skipping 26 matching lines...) Expand all Loading... |
335 // This only has an effect if QUIC protocol is enabled. | 332 // This only has an effect if QUIC protocol is enabled. |
336 const char kDisableQuicPacing[] = "disable-quic-pacing"; | 333 const char kDisableQuicPacing[] = "disable-quic-pacing"; |
337 | 334 |
338 // Disable use of Chromium's port selection for the ephemeral port via bind(). | 335 // Disable use of Chromium's port selection for the ephemeral port via bind(). |
339 // This only has an effect if QUIC protocol is enabled. | 336 // This only has an effect if QUIC protocol is enabled. |
340 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; | 337 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; |
341 | 338 |
342 // Prevents the save password bubble from being enabled. | 339 // Prevents the save password bubble from being enabled. |
343 const char kDisableSavePasswordBubble[] = "disable-save-password-bubble"; | 340 const char kDisableSavePasswordBubble[] = "disable-save-password-bubble"; |
344 | 341 |
345 // Disables the "search button in omnibox" experiment. | |
346 const char kDisableSearchButtonInOmnibox[] = | |
347 "disable-search-button-in-omnibox"; | |
348 | |
349 // Disables using bubbles for session restore request. | 342 // Disables using bubbles for session restore request. |
350 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; | 343 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; |
351 | 344 |
352 // Disables the suggestions service. | 345 // Disables the suggestions service. |
353 const char kDisableSuggestionsService[] = "disable-suggestions-service"; | 346 const char kDisableSuggestionsService[] = "disable-suggestions-service"; |
354 | 347 |
355 // Disables the supervised user host blacklist. | 348 // Disables the supervised user host blacklist. |
356 const char kDisableSupervisedUserBlacklist[] = | 349 const char kDisableSupervisedUserBlacklist[] = |
357 "disable-supervised-user-blacklist"; | 350 "disable-supervised-user-blacklist"; |
358 | 351 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 | 492 |
500 // Only auto-reload error pages when the tab is visible. | 493 // Only auto-reload error pages when the tab is visible. |
501 const char kEnableOfflineAutoReloadVisibleOnly[] = | 494 const char kEnableOfflineAutoReloadVisibleOnly[] = |
502 "enable-offline-auto-reload-visible-only"; | 495 "enable-offline-auto-reload-visible-only"; |
503 | 496 |
504 // Enable/Disable offering a "Load stale copy" option to the user if offline. | 497 // Enable/Disable offering a "Load stale copy" option to the user if offline. |
505 const char kEnableOfflineLoadStaleCache[] = "enable-offline-load-stale-cache"; | 498 const char kEnableOfflineLoadStaleCache[] = "enable-offline-load-stale-cache"; |
506 const char kDisableOfflineLoadStaleCache[] = | 499 const char kDisableOfflineLoadStaleCache[] = |
507 "disable-offline-load-stale-cache"; | 500 "disable-offline-load-stale-cache"; |
508 | 501 |
509 // Controls which branch of the origin chip in location bar experiment is | |
510 // enabled. | |
511 // | |
512 // We're using independent flags here (as opposed to a common flag with | |
513 // different values) to be able to enable/disable the entire experience | |
514 // associated with this feature server-side from the FieldTrial (the complete | |
515 // experience includes other flag changes as well). It is not currently possible | |
516 // to do that with "flag=value" flags. | |
517 const char kEnableOriginChipAlways[] = "enable-origin-chip-always"; | |
518 const char kEnableOriginChipOnSrp[] = "enable-origin-chip-on-srp"; | |
519 | |
520 // Enable the out of process PDF plugin. | 502 // Enable the out of process PDF plugin. |
521 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf"; | 503 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf"; |
522 | 504 |
523 // Enables panels (always on-top docked pop-up windows). | 505 // Enables panels (always on-top docked pop-up windows). |
524 const char kEnablePanels[] = "enable-panels"; | 506 const char kEnablePanels[] = "enable-panels"; |
525 | 507 |
526 // Enables presenting plugin placeholder content as shadow DOM. | 508 // Enables presenting plugin placeholder content as shadow DOM. |
527 const char kEnablePluginPlaceholderShadowDom[] = | 509 const char kEnablePluginPlaceholderShadowDom[] = |
528 "enable-plugin-placeholder-shadow-dom"; | 510 "enable-plugin-placeholder-shadow-dom"; |
529 | 511 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 // Enables context-sensitive reader mode button in the toolbar. | 543 // Enables context-sensitive reader mode button in the toolbar. |
562 const char kEnableReaderModeToolbarIcon[] = | 544 const char kEnableReaderModeToolbarIcon[] = |
563 "enable-reader-mode-toolbar-icon"; | 545 "enable-reader-mode-toolbar-icon"; |
564 | 546 |
565 // Enables save password prompt bubble. | 547 // Enables save password prompt bubble. |
566 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble"; | 548 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble"; |
567 | 549 |
568 // Enables SDCH for https schemes. | 550 // Enables SDCH for https schemes. |
569 const char kEnableSdchOverHttps[] = "enable-sdch-over-https"; | 551 const char kEnableSdchOverHttps[] = "enable-sdch-over-https"; |
570 | 552 |
571 // Controls which branch of the "search button in omnibox" experiment is | |
572 // enabled. | |
573 // | |
574 // We're using independent flags here (as opposed to a common flag with | |
575 // different values) to be able to enable/disable the entire experience | |
576 // associated with this feature server-side from the FieldTrial (the complete | |
577 // experience includes other flag changes as well). It is not currently possible | |
578 // to do that with "flag=value" flags. | |
579 const char kEnableSearchButtonInOmniboxAlways[] = | |
580 "enable-search-button-in-omnibox-always"; | |
581 const char kEnableSearchButtonInOmniboxForStr[] = | |
582 "enable-search-button-in-omnibox-for-str"; | |
583 const char kEnableSearchButtonInOmniboxForStrOrIip[] = | |
584 "enable-search-button-in-omnibox-for-str-or-iip"; | |
585 | |
586 // Enables using bubbles for session restore request instead of infobars. | 553 // Enables using bubbles for session restore request instead of infobars. |
587 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; | 554 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; |
588 | 555 |
589 // Enables the deprecated window.showModalDialog API. This is slated for | 556 // Enables the deprecated window.showModalDialog API. This is slated for |
590 // removal. | 557 // removal. |
591 const char kEnableShowModalDialog[] = "enable-show-modal-dialog"; | 558 const char kEnableShowModalDialog[] = "enable-show-modal-dialog"; |
592 | 559 |
593 // Enable or disable settings in a separate browser window per profile | 560 // Enable or disable settings in a separate browser window per profile |
594 // (see SettingsWindowEnabled() below). | 561 // (see SettingsWindowEnabled() below). |
595 const char kEnableSettingsWindow[] = "enable-settings-window"; | 562 const char kEnableSettingsWindow[] = "enable-settings-window"; |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1396 | 1363 |
1397 // ----------------------------------------------------------------------------- | 1364 // ----------------------------------------------------------------------------- |
1398 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1365 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1399 // | 1366 // |
1400 // You were going to just dump your switches here, weren't you? Instead, please | 1367 // You were going to just dump your switches here, weren't you? Instead, please |
1401 // put them in alphabetical order above, or in order inside the appropriate | 1368 // put them in alphabetical order above, or in order inside the appropriate |
1402 // ifdef at the bottom. The order should match the header. | 1369 // ifdef at the bottom. The order should match the header. |
1403 // ----------------------------------------------------------------------------- | 1370 // ----------------------------------------------------------------------------- |
1404 | 1371 |
1405 } // namespace switches | 1372 } // namespace switches |
OLD | NEW |