| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 | 477 |
| 481 // Only auto-reload error pages when the tab is visible. | 478 // Only auto-reload error pages when the tab is visible. |
| 482 const char kEnableOfflineAutoReloadVisibleOnly[] = | 479 const char kEnableOfflineAutoReloadVisibleOnly[] = |
| 483 "enable-offline-auto-reload-visible-only"; | 480 "enable-offline-auto-reload-visible-only"; |
| 484 | 481 |
| 485 // Enable/Disable offering a "Load stale copy" option to the user if offline. | 482 // Enable/Disable offering a "Load stale copy" option to the user if offline. |
| 486 const char kEnableOfflineLoadStaleCache[] = "enable-offline-load-stale-cache"; | 483 const char kEnableOfflineLoadStaleCache[] = "enable-offline-load-stale-cache"; |
| 487 const char kDisableOfflineLoadStaleCache[] = | 484 const char kDisableOfflineLoadStaleCache[] = |
| 488 "disable-offline-load-stale-cache"; | 485 "disable-offline-load-stale-cache"; |
| 489 | 486 |
| 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. | 487 // Enable the out of process PDF plugin. |
| 502 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf"; | 488 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf"; |
| 503 | 489 |
| 504 // Enables panels (always on-top docked pop-up windows). | 490 // Enables panels (always on-top docked pop-up windows). |
| 505 const char kEnablePanels[] = "enable-panels"; | 491 const char kEnablePanels[] = "enable-panels"; |
| 506 | 492 |
| 507 // Enable the new material UI - requires out of process PDF plugin. | 493 // Enable the new material UI - requires out of process PDF plugin. |
| 508 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui"; | 494 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui"; |
| 509 | 495 |
| 510 // Enables presenting plugin placeholder content as shadow DOM. | 496 // Enables presenting plugin placeholder content as shadow DOM. |
| (...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1406 | 1392 |
| 1407 // ----------------------------------------------------------------------------- | 1393 // ----------------------------------------------------------------------------- |
| 1408 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1394 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1409 // | 1395 // |
| 1410 // You were going to just dump your switches here, weren't you? Instead, please | 1396 // 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 | 1397 // put them in alphabetical order above, or in order inside the appropriate |
| 1412 // ifdef at the bottom. The order should match the header. | 1398 // ifdef at the bottom. The order should match the header. |
| 1413 // ----------------------------------------------------------------------------- | 1399 // ----------------------------------------------------------------------------- |
| 1414 | 1400 |
| 1415 } // namespace switches | 1401 } // namespace switches |
| OLD | NEW |