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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 // is needed for a domain which shares an IP with an existing connection, | 329 // is needed for a domain which shares an IP with an existing connection, |
330 // attempt to use the existing connection. | 330 // attempt to use the existing connection. |
331 const char kDisableIPPooling[] = "disable-ip-pooling"; | 331 const char kDisableIPPooling[] = "disable-ip-pooling"; |
332 | 332 |
333 // Avoid doing expensive animations upon login. | 333 // Avoid doing expensive animations upon login. |
334 const char kDisableLoginAnimations[] = "disable-login-animations"; | 334 const char kDisableLoginAnimations[] = "disable-login-animations"; |
335 | 335 |
336 // Disables the menu on the NTP for accessing sessions from other devices. | 336 // Disables the menu on the NTP for accessing sessions from other devices. |
337 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; | 337 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; |
338 | 338 |
339 // Disables the inline off-store extension installation UI. With this switch, | |
340 // users must use a new out-of-band installation UI from chrome://extensions/. | |
341 const char kDisableOffStoreExtensionInstall[] = | |
342 "disable-off-store-extension-install"; | |
343 | |
344 // Disable speculative TCP/IP preconnection. | 339 // Disable speculative TCP/IP preconnection. |
345 const char kDisablePreconnect[] = "disable-preconnect"; | 340 const char kDisablePreconnect[] = "disable-preconnect"; |
346 | 341 |
347 // Normally when the user attempts to navigate to a page that was the result of | 342 // Normally when the user attempts to navigate to a page that was the result of |
348 // a post we prompt to make sure they want to. This switch may be used to | 343 // a post we prompt to make sure they want to. This switch may be used to |
349 // disable that check. This switch is used during automated testing. | 344 // disable that check. This switch is used during automated testing. |
350 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; | 345 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; |
351 | 346 |
352 // Prevents the URLs of BackgroundContents from being remembered and | 347 // Prevents the URLs of BackgroundContents from being remembered and |
353 // re-launched when the browser restarts. | 348 // re-launched when the browser restarts. |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 // Enables hardware exception handling via debugger process. | 556 // Enables hardware exception handling via debugger process. |
562 const char kEnableNaClExceptionHandling[] = "enable-nacl-exception-handling"; | 557 const char kEnableNaClExceptionHandling[] = "enable-nacl-exception-handling"; |
563 | 558 |
564 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY. | 559 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY. |
565 const char kEnableNpn[] = "enable-npn"; | 560 const char kEnableNpn[] = "enable-npn"; |
566 | 561 |
567 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used. | 562 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used. |
568 // HTTP is still used for all requests. | 563 // HTTP is still used for all requests. |
569 const char kEnableNpnHttpOnly[] = "enable-npn-http"; | 564 const char kEnableNpnHttpOnly[] = "enable-npn-http"; |
570 | 565 |
| 566 // Enables extensions to be easily installed from sites other than the web |
| 567 // store. Without this flag, they can still be installed, but must be manually |
| 568 // dragged onto chrome://extensions/. |
| 569 const char kEnableOffStoreExtensionInstall[] = |
| 570 "enable-off-store-extension-install"; |
| 571 |
571 // Enables panels (always on-top docked pop-up windows). | 572 // Enables panels (always on-top docked pop-up windows). |
572 const char kEnablePanels[] = "enable-panels"; | 573 const char kEnablePanels[] = "enable-panels"; |
573 | 574 |
574 // Enables password generation when we detect that the user is going through | 575 // Enables password generation when we detect that the user is going through |
575 // account creation. | 576 // account creation. |
576 const char kEnablePasswordGeneration[] = "enable-password-generation"; | 577 const char kEnablePasswordGeneration[] = "enable-password-generation"; |
577 | 578 |
578 // Enables advanced app capabilities. | 579 // Enables advanced app capabilities. |
579 const char kEnablePlatformApps[] = "enable-platform-apps"; | 580 const char kEnablePlatformApps[] = "enable-platform-apps"; |
580 | 581 |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 | 1450 |
1450 // ----------------------------------------------------------------------------- | 1451 // ----------------------------------------------------------------------------- |
1451 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1452 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1452 // | 1453 // |
1453 // You were going to just dump your switches here, weren't you? Instead, please | 1454 // You were going to just dump your switches here, weren't you? Instead, please |
1454 // put them in alphabetical order above, or in order inside the appropriate | 1455 // put them in alphabetical order above, or in order inside the appropriate |
1455 // ifdef at the bottom. The order should match the header. | 1456 // ifdef at the bottom. The order should match the header. |
1456 // ----------------------------------------------------------------------------- | 1457 // ----------------------------------------------------------------------------- |
1457 | 1458 |
1458 } // namespace switches | 1459 } // namespace switches |
OLD | NEW |