| 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 { |
| 11 | 11 |
| 12 // ----------------------------------------------------------------------------- | 12 // ----------------------------------------------------------------------------- |
| 13 // Can't find the switch you are looking for? Try looking in: | 13 // Can't find the switch you are looking for? Try looking in: |
| 14 // ash/ash_switches.cc | 14 // ash/ash_switches.cc |
| 15 // base/base_switches.cc | 15 // base/base_switches.cc |
| 16 // chromeos/chromeos_switches.cc | 16 // chromeos/chromeos_switches.cc |
| 17 // etc. | 17 // etc. |
| 18 // | 18 // |
| 19 // When commenting your switch, please use the same voice as surrounding | 19 // When commenting your switch, please use the same voice as surrounding |
| 20 // comments. Imagine "This switch..." at the beginning of the phrase, and it'll | 20 // comments. Imagine "This switch..." at the beginning of the phrase, and it'll |
| 21 // all work out. | 21 // all work out. |
| 22 // ----------------------------------------------------------------------------- | 22 // ----------------------------------------------------------------------------- |
| 23 | 23 |
| 24 // Allows choosing an existing managed user profile during the managed | |
| 25 // user creation flow. Is only used on ChromeOS. | |
| 26 const char kAllowCreateExistingManagedUsers[] = | |
| 27 "allow-create-existing-managed-users"; | |
| 28 | |
| 29 // Allows third-party content included on a page to prompt for a HTTP basic | 24 // Allows third-party content included on a page to prompt for a HTTP basic |
| 30 // auth username/password pair. | 25 // auth username/password pair. |
| 31 const char kAllowCrossOriginAuthPrompt[] = "allow-cross-origin-auth-prompt"; | 26 const char kAllowCrossOriginAuthPrompt[] = "allow-cross-origin-auth-prompt"; |
| 32 | 27 |
| 33 // On ChromeOS, file:// access is disabled except for certain whitelisted | 28 // On ChromeOS, file:// access is disabled except for certain whitelisted |
| 34 // directories. This switch re-enables file:// for testing. | 29 // directories. This switch re-enables file:// for testing. |
| 35 const char kAllowFileAccess[] = "allow-file-access"; | 30 const char kAllowFileAccess[] = "allow-file-access"; |
| 36 | 31 |
| 37 // Allow non-secure origins to use the screen capture API and the desktopCapture | 32 // Allow non-secure origins to use the screen capture API and the desktopCapture |
| 38 // extension API. | 33 // extension API. |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 // performance tests where these pages may interfere with perf results. | 259 // performance tests where these pages may interfere with perf results. |
| 265 const char kDisableComponentExtensionsWithBackgroundPages[] = | 260 const char kDisableComponentExtensionsWithBackgroundPages[] = |
| 266 "disable-component-extensions-with-background-pages"; | 261 "disable-component-extensions-with-background-pages"; |
| 267 | 262 |
| 268 const char kDisableComponentUpdate[] = "disable-component-update"; | 263 const char kDisableComponentUpdate[] = "disable-component-update"; |
| 269 | 264 |
| 270 // Disables establishing certificate revocation information by downloading a | 265 // Disables establishing certificate revocation information by downloading a |
| 271 // set of CRLs rather than performing on-line checks. | 266 // set of CRLs rather than performing on-line checks. |
| 272 const char kDisableCRLSets[] = "disable-crl-sets"; | 267 const char kDisableCRLSets[] = "disable-crl-sets"; |
| 273 | 268 |
| 274 // Disables choosing an existing managed user profile during the managed | |
| 275 // user creation flow. | |
| 276 const char kDisableCreateExistingManagedUsers[] = | |
| 277 "disable-create-exsting-managed-users"; | |
| 278 | |
| 279 // Disables installation of default apps on first run. This is used during | 269 // Disables installation of default apps on first run. This is used during |
| 280 // automated testing. | 270 // automated testing. |
| 281 const char kDisableDefaultApps[] = "disable-default-apps"; | 271 const char kDisableDefaultApps[] = "disable-default-apps"; |
| 282 | 272 |
| 283 // Disables device discovery. | 273 // Disables device discovery. |
| 284 const char kDisableDeviceDiscovery[] = "disable-device-discovery"; | 274 const char kDisableDeviceDiscovery[] = "disable-device-discovery"; |
| 285 | 275 |
| 286 // Disables device discovery notifications. | 276 // Disables device discovery notifications. |
| 287 const char kDisableDeviceDiscoveryNotifications[] = | 277 const char kDisableDeviceDiscoveryNotifications[] = |
| 288 "disable-device-discovery-notifications"; | 278 "disable-device-discovery-notifications"; |
| (...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1523 | 1513 |
| 1524 // ----------------------------------------------------------------------------- | 1514 // ----------------------------------------------------------------------------- |
| 1525 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1515 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1526 // | 1516 // |
| 1527 // You were going to just dump your switches here, weren't you? Instead, please | 1517 // You were going to just dump your switches here, weren't you? Instead, please |
| 1528 // put them in alphabetical order above, or in order inside the appropriate | 1518 // put them in alphabetical order above, or in order inside the appropriate |
| 1529 // ifdef at the bottom. The order should match the header. | 1519 // ifdef at the bottom. The order should match the header. |
| 1530 // ----------------------------------------------------------------------------- | 1520 // ----------------------------------------------------------------------------- |
| 1531 | 1521 |
| 1532 } // namespace switches | 1522 } // namespace switches |
| OLD | NEW |