| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 // Disable checking for user opt-in for extensions that want to inject script | 259 // Disable checking for user opt-in for extensions that want to inject script |
| 260 // into file URLs (ie, always allow it). This is used during automated testing. | 260 // into file URLs (ie, always allow it). This is used during automated testing. |
| 261 const char kDisableExtensionsFileAccessCheck[] = | 261 const char kDisableExtensionsFileAccessCheck[] = |
| 262 "disable-extensions-file-access-check"; | 262 "disable-extensions-file-access-check"; |
| 263 | 263 |
| 264 // Disable the net::URLRequestThrottlerManager functionality for | 264 // Disable the net::URLRequestThrottlerManager functionality for |
| 265 // requests originating from extensions. | 265 // requests originating from extensions. |
| 266 const char kDisableExtensionsHttpThrottling[] = | 266 const char kDisableExtensionsHttpThrottling[] = |
| 267 "disable-extensions-http-throttling"; | 267 "disable-extensions-http-throttling"; |
| 268 | 268 |
| 269 // Comma-separated list of feature names to disable. See also kEnableFeatures. | |
| 270 const char kDisableFeatures[] = "disable-features"; | |
| 271 | |
| 272 // Disable field trial tests configured in fieldtrial_testing_config.json. | 269 // Disable field trial tests configured in fieldtrial_testing_config.json. |
| 273 const char kDisableFieldTrialTestingConfig[] = "disable-field-trial-config"; | 270 const char kDisableFieldTrialTestingConfig[] = "disable-field-trial-config"; |
| 274 | 271 |
| 275 // Disables the Material Design version of chrome://downloads. | 272 // Disables the Material Design version of chrome://downloads. |
| 276 const char kDisableMaterialDesignDownloads[] = "disable-md-downloads"; | 273 const char kDisableMaterialDesignDownloads[] = "disable-md-downloads"; |
| 277 | 274 |
| 278 // Disable the behavior that the second click on a launcher item (the click when | 275 // Disable the behavior that the second click on a launcher item (the click when |
| 279 // the item is already active) minimizes the item. | 276 // the item is already active) minimizes the item. |
| 280 const char kDisableMinimizeOnSecondLauncherItemClick[] = | 277 const char kDisableMinimizeOnSecondLauncherItemClick[] = |
| 281 "disable-minimize-on-second-launcher-item-click"; | 278 "disable-minimize-on-second-launcher-item-click"; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 "enable-extension-activity-logging"; | 429 "enable-extension-activity-logging"; |
| 433 | 430 |
| 434 const char kEnableExtensionActivityLogTesting[] = | 431 const char kEnableExtensionActivityLogTesting[] = |
| 435 "enable-extension-activity-log-testing"; | 432 "enable-extension-activity-log-testing"; |
| 436 | 433 |
| 437 // Enable the fast unload controller, which speeds up tab/window close by | 434 // Enable the fast unload controller, which speeds up tab/window close by |
| 438 // running a tab's onunload js handler independently of the GUI - | 435 // running a tab's onunload js handler independently of the GUI - |
| 439 // crbug.com/142458 . | 436 // crbug.com/142458 . |
| 440 const char kEnableFastUnload[] = "enable-fast-unload"; | 437 const char kEnableFastUnload[] = "enable-fast-unload"; |
| 441 | 438 |
| 442 // Comma-separated list of feature names to enable. See also kDisableFeatures. | |
| 443 const char kEnableFeatures[] = "enable-features"; | |
| 444 | |
| 445 // Enables support for the QUIC protocol for insecure schemes (http://). | 439 // Enables support for the QUIC protocol for insecure schemes (http://). |
| 446 // This is a temporary testing flag. | 440 // This is a temporary testing flag. |
| 447 const char kEnableInsecureQuic[] = "enable-insecure-quic"; | 441 const char kEnableInsecureQuic[] = "enable-insecure-quic"; |
| 448 | 442 |
| 449 // Enables the Material Design version of chrome://downloads. | 443 // Enables the Material Design version of chrome://downloads. |
| 450 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads"; | 444 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads"; |
| 451 | 445 |
| 452 // Enables the Material Design version of chrome://extensions. | 446 // Enables the Material Design version of chrome://extensions. |
| 453 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions"; | 447 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions"; |
| 454 | 448 |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1390 | 1384 |
| 1391 // ----------------------------------------------------------------------------- | 1385 // ----------------------------------------------------------------------------- |
| 1392 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1386 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1393 // | 1387 // |
| 1394 // You were going to just dump your switches here, weren't you? Instead, please | 1388 // You were going to just dump your switches here, weren't you? Instead, please |
| 1395 // put them in alphabetical order above, or in order inside the appropriate | 1389 // put them in alphabetical order above, or in order inside the appropriate |
| 1396 // ifdef at the bottom. The order should match the header. | 1390 // ifdef at the bottom. The order should match the header. |
| 1397 // ----------------------------------------------------------------------------- | 1391 // ----------------------------------------------------------------------------- |
| 1398 | 1392 |
| 1399 } // namespace switches | 1393 } // namespace switches |
| OLD | NEW |