| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 // This only has an effect if QUIC protocol is enabled. | 332 // This only has an effect if QUIC protocol is enabled. |
| 333 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; | 333 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; |
| 334 | 334 |
| 335 // Disables using bubbles for session restore request. | 335 // Disables using bubbles for session restore request. |
| 336 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; | 336 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; |
| 337 | 337 |
| 338 // Disables the Site Engagement service, which records interaction with sites | 338 // Disables the Site Engagement service, which records interaction with sites |
| 339 // and allocates certain resources accordingly. | 339 // and allocates certain resources accordingly. |
| 340 const char kDisableSiteEngagementService[] = "disable-site-engagement-service"; | 340 const char kDisableSiteEngagementService[] = "disable-site-engagement-service"; |
| 341 | 341 |
| 342 // Disables syncing browser data to a Google Account. | |
| 343 const char kDisableSync[] = "disable-sync"; | |
| 344 | |
| 345 // Disables syncing one or more sync data types that are on by default. | |
| 346 // See sync/internal_api/public/base/model_type.h for possible types. Types | |
| 347 // should be comma separated, and follow the naming convention for string | |
| 348 // representation of model types, e.g.: | |
| 349 // --disable-synctypes='Typed URLs, Bookmarks, Autofill Profiles' | |
| 350 const char kDisableSyncTypes[] = "disable-sync-types"; | |
| 351 | |
| 352 // Disables Web Notification custom layouts. | 342 // Disables Web Notification custom layouts. |
| 353 const char kDisableWebNotificationCustomLayouts[] = | 343 const char kDisableWebNotificationCustomLayouts[] = |
| 354 "disable-web-notification-custom-layouts"; | 344 "disable-web-notification-custom-layouts"; |
| 355 | 345 |
| 356 // Disables the backend service for web resources. | 346 // Disables the backend service for web resources. |
| 357 const char kDisableWebResources[] = "disable-web-resources"; | 347 const char kDisableWebResources[] = "disable-web-resources"; |
| 358 | 348 |
| 359 // Some tests seem to require the application to close when the last | 349 // Some tests seem to require the application to close when the last |
| 360 // browser window is closed. Thus, we need a switch to force this behavior | 350 // browser window is closed. Thus, we need a switch to force this behavior |
| 361 // for ChromeOS Aura, disable "zero window mode". | 351 // for ChromeOS Aura, disable "zero window mode". |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 const char kEnableWebAppFrame[] = "enable-web-app-frame"; | 555 const char kEnableWebAppFrame[] = "enable-web-app-frame"; |
| 566 | 556 |
| 567 // Enables Web Notification custom layouts. | 557 // Enables Web Notification custom layouts. |
| 568 const char kEnableWebNotificationCustomLayouts[] = | 558 const char kEnableWebNotificationCustomLayouts[] = |
| 569 "enable-web-notification-custom-layouts"; | 559 "enable-web-notification-custom-layouts"; |
| 570 | 560 |
| 571 // Bypasses the WebUSB permission prompt as it is not yet implemented. | 561 // Bypasses the WebUSB permission prompt as it is not yet implemented. |
| 572 // crbug.com/529950 | 562 // crbug.com/529950 |
| 573 const char kEnableWebUsbOnAnyOrigin[] = "enable-webusb-on-any-origin"; | 563 const char kEnableWebUsbOnAnyOrigin[] = "enable-webusb-on-any-origin"; |
| 574 | 564 |
| 575 // Enables synchronizing WiFi credentials across devices, using Chrome Sync. | |
| 576 const char kEnableWifiCredentialSync[] = "enable-wifi-credential-sync"; | |
| 577 | |
| 578 // Values for the kExtensionContentVerification flag. | 565 // Values for the kExtensionContentVerification flag. |
| 579 // See ContentVerifierDelegate::Mode for more explanation. | 566 // See ContentVerifierDelegate::Mode for more explanation. |
| 580 const char kExtensionContentVerificationBootstrap[] = "bootstrap"; | 567 const char kExtensionContentVerificationBootstrap[] = "bootstrap"; |
| 581 const char kExtensionContentVerificationEnforceStrict[] = "enforce_strict"; | 568 const char kExtensionContentVerificationEnforceStrict[] = "enforce_strict"; |
| 582 const char kExtensionContentVerificationEnforce[] = "enforce"; | 569 const char kExtensionContentVerificationEnforce[] = "enforce"; |
| 583 | 570 |
| 584 // Name of the command line flag to force content verification to be on in one | 571 // Name of the command line flag to force content verification to be on in one |
| 585 // of various modes. | 572 // of various modes. |
| 586 const char kExtensionContentVerification[] = "extension-content-verification"; | 573 const char kExtensionContentVerification[] = "extension-content-verification"; |
| 587 | 574 |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1394 | 1381 |
| 1395 // ----------------------------------------------------------------------------- | 1382 // ----------------------------------------------------------------------------- |
| 1396 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1383 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1397 // | 1384 // |
| 1398 // You were going to just dump your switches here, weren't you? Instead, please | 1385 // You were going to just dump your switches here, weren't you? Instead, please |
| 1399 // put them in alphabetical order above, or in order inside the appropriate | 1386 // put them in alphabetical order above, or in order inside the appropriate |
| 1400 // ifdef at the bottom. The order should match the header. | 1387 // ifdef at the bottom. The order should match the header. |
| 1401 // ----------------------------------------------------------------------------- | 1388 // ----------------------------------------------------------------------------- |
| 1402 | 1389 |
| 1403 } // namespace switches | 1390 } // namespace switches |
| OLD | NEW |