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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 // Disables the Material Design NTP. | 289 // Disables the Material Design NTP. |
290 const char kDisableMaterialDesignNTP[] = "disable-material-design-ntp"; | 290 const char kDisableMaterialDesignNTP[] = "disable-material-design-ntp"; |
291 | 291 |
292 // Disable auto-reload of error pages if offline. | 292 // Disable auto-reload of error pages if offline. |
293 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; | 293 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; |
294 | 294 |
295 // Disable only auto-reloading error pages when the tab is visible. | 295 // Disable only auto-reloading error pages when the tab is visible. |
296 const char kDisableOfflineAutoReloadVisibleOnly[] = | 296 const char kDisableOfflineAutoReloadVisibleOnly[] = |
297 "disable-offline-auto-reload-visible-only"; | 297 "disable-offline-auto-reload-visible-only"; |
298 | 298 |
299 // Disable the origin chip. | |
300 const char kDisableOriginChip[] = "disable-origin-chip"; | |
301 | |
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"; |
309 | 306 |
310 // Don't use bubbles for content permissions requests instead of infobars. | 307 // Don't use bubbles for content permissions requests instead of infobars. |
311 const char kDisablePermissionsBubbles[] = "disable-permissions-bubbles"; | 308 const char kDisablePermissionsBubbles[] = "disable-permissions-bubbles"; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 | 493 |
497 // Only auto-reload error pages when the tab is visible. | 494 // Only auto-reload error pages when the tab is visible. |
498 const char kEnableOfflineAutoReloadVisibleOnly[] = | 495 const char kEnableOfflineAutoReloadVisibleOnly[] = |
499 "enable-offline-auto-reload-visible-only"; | 496 "enable-offline-auto-reload-visible-only"; |
500 | 497 |
501 // Enable/Disable offering a "Load stale copy" option to the user if offline. | 498 // Enable/Disable offering a "Load stale copy" option to the user if offline. |
502 const char kEnableOfflineLoadStaleCache[] = "enable-offline-load-stale-cache"; | 499 const char kEnableOfflineLoadStaleCache[] = "enable-offline-load-stale-cache"; |
503 const char kDisableOfflineLoadStaleCache[] = | 500 const char kDisableOfflineLoadStaleCache[] = |
504 "disable-offline-load-stale-cache"; | 501 "disable-offline-load-stale-cache"; |
505 | 502 |
506 // Controls which branch of the origin chip in location bar experiment is | |
507 // enabled. | |
508 // | |
509 // We're using independent flags here (as opposed to a common flag with | |
510 // different values) to be able to enable/disable the entire experience | |
511 // associated with this feature server-side from the FieldTrial (the complete | |
512 // experience includes other flag changes as well). It is not currently possible | |
513 // to do that with "flag=value" flags. | |
514 const char kEnableOriginChipAlways[] = "enable-origin-chip-always"; | |
515 const char kEnableOriginChipOnSrp[] = "enable-origin-chip-on-srp"; | |
516 | |
517 // Enables panels (always on-top docked pop-up windows). | 503 // Enables panels (always on-top docked pop-up windows). |
518 const char kEnablePanels[] = "enable-panels"; | 504 const char kEnablePanels[] = "enable-panels"; |
519 | 505 |
520 // Enables presenting plugin placeholder content as shadow DOM. | 506 // Enables presenting plugin placeholder content as shadow DOM. |
521 const char kEnablePluginPlaceholderShadowDom[] = | 507 const char kEnablePluginPlaceholderShadowDom[] = |
522 "enable-plugin-placeholder-shadow-dom"; | 508 "enable-plugin-placeholder-shadow-dom"; |
523 | 509 |
524 // Enables the Power overlay in Settings. | 510 // Enables the Power overlay in Settings. |
525 const char kEnablePowerOverlay[] = "enable-power-overlay"; | 511 const char kEnablePowerOverlay[] = "enable-power-overlay"; |
526 | 512 |
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1382 | 1368 |
1383 // ----------------------------------------------------------------------------- | 1369 // ----------------------------------------------------------------------------- |
1384 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1370 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1385 // | 1371 // |
1386 // You were going to just dump your switches here, weren't you? Instead, please | 1372 // You were going to just dump your switches here, weren't you? Instead, please |
1387 // put them in alphabetical order above, or in order inside the appropriate | 1373 // put them in alphabetical order above, or in order inside the appropriate |
1388 // ifdef at the bottom. The order should match the header. | 1374 // ifdef at the bottom. The order should match the header. |
1389 // ----------------------------------------------------------------------------- | 1375 // ----------------------------------------------------------------------------- |
1390 | 1376 |
1391 } // namespace switches | 1377 } // namespace switches |
OLD | NEW |