| 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 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "ppapi/features/features.h" | 10 #include "ppapi/features/features.h" |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // a post we prompt to make sure they want to. This switch may be used to | 276 // a post we prompt to make sure they want to. This switch may be used to |
| 277 // disable that check. This switch is used during automated testing. | 277 // disable that check. This switch is used during automated testing. |
| 278 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; | 278 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; |
| 279 | 279 |
| 280 // Enable background mode for the Push API. | 280 // Enable background mode for the Push API. |
| 281 const char kDisablePushApiBackgroundMode[] = "disable-push-api-background-mode"; | 281 const char kDisablePushApiBackgroundMode[] = "disable-push-api-background-mode"; |
| 282 | 282 |
| 283 // Disables the QUIC protocol. | 283 // Disables the QUIC protocol. |
| 284 const char kDisableQuic[] = "disable-quic"; | 284 const char kDisableQuic[] = "disable-quic"; |
| 285 | 285 |
| 286 // Disable use of Chromium's port selection for the ephemeral port via bind(). | |
| 287 // This only has an effect if QUIC protocol is enabled. | |
| 288 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; | |
| 289 | |
| 290 // Disable settings in a separate browser window per profile | 286 // Disable settings in a separate browser window per profile |
| 291 // (see SettingsWindowEnabled() below). | 287 // (see SettingsWindowEnabled() below). |
| 292 const char kDisableSettingsWindow[] = "disable-settings-window"; | 288 const char kDisableSettingsWindow[] = "disable-settings-window"; |
| 293 | 289 |
| 294 // Disables Web Notification custom layouts. | 290 // Disables Web Notification custom layouts. |
| 295 const char kDisableWebNotificationCustomLayouts[] = | 291 const char kDisableWebNotificationCustomLayouts[] = |
| 296 "disable-web-notification-custom-layouts"; | 292 "disable-web-notification-custom-layouts"; |
| 297 | 293 |
| 298 // Disables WebUSB's CORS-like checks for origin->device communication. | 294 // Disables WebUSB's CORS-like checks for origin->device communication. |
| 299 const char kDisableWebUsbSecurity[] = "disable-webusb-security"; | 295 const char kDisableWebUsbSecurity[] = "disable-webusb-security"; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 // Some tracking will still take place at startup, but it will be turned off | 423 // Some tracking will still take place at startup, but it will be turned off |
| 428 // during chrome_browser_main. | 424 // during chrome_browser_main. |
| 429 const char kEnableProfiling[] = "enable-profiling"; | 425 const char kEnableProfiling[] = "enable-profiling"; |
| 430 | 426 |
| 431 // Enable background mode for the Push API. | 427 // Enable background mode for the Push API. |
| 432 const char kEnablePushApiBackgroundMode[] = "enable-push-api-background-mode"; | 428 const char kEnablePushApiBackgroundMode[] = "enable-push-api-background-mode"; |
| 433 | 429 |
| 434 // Enables the QUIC protocol. This is a temporary testing flag. | 430 // Enables the QUIC protocol. This is a temporary testing flag. |
| 435 const char kEnableQuic[] = "enable-quic"; | 431 const char kEnableQuic[] = "enable-quic"; |
| 436 | 432 |
| 437 // Enable use of Chromium's port selection for the ephemeral port via bind(). | |
| 438 // This only has an effect if the QUIC protocol is enabled. | |
| 439 const char kEnableQuicPortSelection[] = "enable-quic-port-selection"; | |
| 440 | |
| 441 // Switches 'Save as...' context and app menu labels to 'Download...'. | 433 // Switches 'Save as...' context and app menu labels to 'Download...'. |
| 442 const char kEnableSaveAsMenuLabelExperiment[] = "saveas-menu-label"; | 434 const char kEnableSaveAsMenuLabelExperiment[] = "saveas-menu-label"; |
| 443 | 435 |
| 444 // Enable settings in a separate browser window per profile | 436 // Enable settings in a separate browser window per profile |
| 445 // (see SettingsWindowEnabled() below). | 437 // (see SettingsWindowEnabled() below). |
| 446 const char kEnableSettingsWindow[] = "enable-settings-window"; | 438 const char kEnableSettingsWindow[] = "enable-settings-window"; |
| 447 | 439 |
| 448 // Enable the Site Engagement App Banner which triggers app install banners | 440 // Enable the Site Engagement App Banner which triggers app install banners |
| 449 // using the site engagement service rather than a navigation-based heuristic. | 441 // using the site engagement service rather than a navigation-based heuristic. |
| 450 // Implicitly enables the site engagement service. | 442 // Implicitly enables the site engagement service. |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 | 1308 |
| 1317 // ----------------------------------------------------------------------------- | 1309 // ----------------------------------------------------------------------------- |
| 1318 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. | 1310 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. |
| 1319 // | 1311 // |
| 1320 // You were going to just dump your switches here, weren't you? Instead, please | 1312 // You were going to just dump your switches here, weren't you? Instead, please |
| 1321 // put them in alphabetical order above, or in order inside the appropriate | 1313 // put them in alphabetical order above, or in order inside the appropriate |
| 1322 // ifdef at the bottom. The order should match the header. | 1314 // ifdef at the bottom. The order should match the header. |
| 1323 // ----------------------------------------------------------------------------- | 1315 // ----------------------------------------------------------------------------- |
| 1324 | 1316 |
| 1325 } // namespace switches | 1317 } // namespace switches |
| OLD | NEW |