| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // Disables the menu on the NTP for accessing sessions from other devices. | 269 // Disables the menu on the NTP for accessing sessions from other devices. |
| 270 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; | 270 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; |
| 271 | 271 |
| 272 // Disable auto-reload of error pages if offline. | 272 // Disable auto-reload of error pages if offline. |
| 273 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; | 273 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; |
| 274 | 274 |
| 275 // Disable only auto-reloading error pages when the tab is visible. | 275 // Disable only auto-reloading error pages when the tab is visible. |
| 276 const char kDisableOfflineAutoReloadVisibleOnly[] = | 276 const char kDisableOfflineAutoReloadVisibleOnly[] = |
| 277 "disable-offline-auto-reload-visible-only"; | 277 "disable-offline-auto-reload-visible-only"; |
| 278 | 278 |
| 279 // Disable the origin chip. | |
| 280 const char kDisableOriginChip[] = "disable-origin-chip"; | |
| 281 | |
| 282 // Disable the out of process PDF plugin. | 279 // Disable the out of process PDF plugin. |
| 283 const char kDisableOutOfProcessPdf[] = "disable-out-of-process-pdf"; | 280 const char kDisableOutOfProcessPdf[] = "disable-out-of-process-pdf"; |
| 284 | 281 |
| 285 // Disable the setting to prompt the user for their OS account password before | 282 // Disable the setting to prompt the user for their OS account password before |
| 286 // revealing plaintext passwords in the password manager. | 283 // revealing plaintext passwords in the password manager. |
| 287 const char kDisablePasswordManagerReauthentication[] = | 284 const char kDisablePasswordManagerReauthentication[] = |
| 288 "disable-password-manager-reauthentication"; | 285 "disable-password-manager-reauthentication"; |
| 289 | 286 |
| 290 // Disable the new material UI - requires out of process PDF plugin. | 287 // Disable the new material UI - requires out of process PDF plugin. |
| 291 const char kDisablePdfMaterialUI[] = "disable-pdf-material-ui"; | 288 const char kDisablePdfMaterialUI[] = "disable-pdf-material-ui"; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 | 470 |
| 474 // Only auto-reload error pages when the tab is visible. | 471 // Only auto-reload error pages when the tab is visible. |
| 475 const char kEnableOfflineAutoReloadVisibleOnly[] = | 472 const char kEnableOfflineAutoReloadVisibleOnly[] = |
| 476 "enable-offline-auto-reload-visible-only"; | 473 "enable-offline-auto-reload-visible-only"; |
| 477 | 474 |
| 478 // Enable/Disable offering a "Load stale copy" option to the user if offline. | 475 // Enable/Disable offering a "Load stale copy" option to the user if offline. |
| 479 const char kEnableOfflineLoadStaleCache[] = "enable-offline-load-stale-cache"; | 476 const char kEnableOfflineLoadStaleCache[] = "enable-offline-load-stale-cache"; |
| 480 const char kDisableOfflineLoadStaleCache[] = | 477 const char kDisableOfflineLoadStaleCache[] = |
| 481 "disable-offline-load-stale-cache"; | 478 "disable-offline-load-stale-cache"; |
| 482 | 479 |
| 483 // Controls which branch of the origin chip in location bar experiment is | |
| 484 // enabled. | |
| 485 // | |
| 486 // We're using independent flags here (as opposed to a common flag with | |
| 487 // different values) to be able to enable/disable the entire experience | |
| 488 // associated with this feature server-side from the FieldTrial (the complete | |
| 489 // experience includes other flag changes as well). It is not currently possible | |
| 490 // to do that with "flag=value" flags. | |
| 491 const char kEnableOriginChipAlways[] = "enable-origin-chip-always"; | |
| 492 const char kEnableOriginChipOnSrp[] = "enable-origin-chip-on-srp"; | |
| 493 | |
| 494 // Enable the out of process PDF plugin. | 480 // Enable the out of process PDF plugin. |
| 495 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf"; | 481 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf"; |
| 496 | 482 |
| 497 // Enables panels (always on-top docked pop-up windows). | 483 // Enables panels (always on-top docked pop-up windows). |
| 498 const char kEnablePanels[] = "enable-panels"; | 484 const char kEnablePanels[] = "enable-panels"; |
| 499 | 485 |
| 500 // Enable the new material UI - requires out of process PDF plugin. | 486 // Enable the new material UI - requires out of process PDF plugin. |
| 501 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui"; | 487 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui"; |
| 502 | 488 |
| 503 // Enables presenting plugin placeholder content as shadow DOM. | 489 // Enables presenting plugin placeholder content as shadow DOM. |
| (...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1405 | 1391 |
| 1406 // ----------------------------------------------------------------------------- | 1392 // ----------------------------------------------------------------------------- |
| 1407 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1393 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1408 // | 1394 // |
| 1409 // You were going to just dump your switches here, weren't you? Instead, please | 1395 // You were going to just dump your switches here, weren't you? Instead, please |
| 1410 // put them in alphabetical order above, or in order inside the appropriate | 1396 // put them in alphabetical order above, or in order inside the appropriate |
| 1411 // ifdef at the bottom. The order should match the header. | 1397 // ifdef at the bottom. The order should match the header. |
| 1412 // ----------------------------------------------------------------------------- | 1398 // ----------------------------------------------------------------------------- |
| 1413 | 1399 |
| 1414 } // namespace switches | 1400 } // namespace switches |
| OLD | NEW |