OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 // preferences. | 512 // preferences. |
513 const char kEnableResourceContentSettings[] = | 513 const char kEnableResourceContentSettings[] = |
514 "enable-resource-content-settings"; | 514 "enable-resource-content-settings"; |
515 | 515 |
516 // Disables panels (always on-top docked pop-up windows). | 516 // Disables panels (always on-top docked pop-up windows). |
517 const char kDisablePanels[] = "disable-panels"; | 517 const char kDisablePanels[] = "disable-panels"; |
518 | 518 |
519 // Enables speculative TCP/IP preconnection. | 519 // Enables speculative TCP/IP preconnection. |
520 const char kEnablePreconnect[] = "enable-preconnect"; | 520 const char kEnablePreconnect[] = "enable-preconnect"; |
521 | 521 |
| 522 // Controls the support for SDCH filtering (dictionary based expansion of |
| 523 // content). By default SDCH filtering is enabled. To disable SDCH filtering, |
| 524 // use "--enable-sdch=0" as command line argument. SDCH is currently only |
| 525 // supported server-side for searches on google.com. |
| 526 const char kEnableSdch[] = "enable-sdch"; |
| 527 |
522 // Enables the IsSearchProviderInstalled and InstallSearchProvider with an | 528 // Enables the IsSearchProviderInstalled and InstallSearchProvider with an |
523 // extra parameter to indicate if the provider should be the default. | 529 // extra parameter to indicate if the provider should be the default. |
524 const char kEnableSearchProviderApiV2[] = "enable-search-provider-api-v2"; | 530 const char kEnableSearchProviderApiV2[] = "enable-search-provider-api-v2"; |
525 | 531 |
526 // Enables the use of the ShortcutsProvider for autocomplete results. | 532 // Enables the use of the ShortcutsProvider for autocomplete results. |
527 const char kEnableShortcutsProvider[] = "enable-shortcuts-provider"; | 533 const char kEnableShortcutsProvider[] = "enable-shortcuts-provider"; |
528 | 534 |
529 // On platforms that support it, enables smooth scroll animation. | 535 // On platforms that support it, enables smooth scroll animation. |
530 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling"; | 536 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling"; |
531 | 537 |
532 // Enables syncing extension settings. | 538 // Enables syncing extension settings. |
533 const char kEnableSyncExtensionSettings[] = "enable-sync-extension-settings"; | 539 const char kEnableSyncExtensionSettings[] = "enable-sync-extension-settings"; |
534 | 540 |
535 // Enables OAuth sign-in for sync. | 541 // Enables OAuth sign-in for sync. |
536 const char kEnableSyncOAuth[] = "enable-sync-oauth"; | 542 const char kEnableSyncOAuth[] = "enable-sync-oauth"; |
537 | 543 |
538 // Enables syncing custom search engines. | 544 // Enables syncing custom search engines. |
539 const char kEnableSyncSearchEngines[] = "enable-sync-search-engines"; | 545 const char kEnableSyncSearchEngines[] = "enable-sync-search-engines"; |
540 | 546 |
541 // Enables syncing browser sessions. | 547 // Enables syncing browser sessions. |
542 const char kEnableSyncTabs[] = "enable-sync-tabs"; | 548 const char kEnableSyncTabs[] = "enable-sync-tabs"; |
543 | 549 |
544 // Enables syncing browser sessions for other synced clients. | 550 // Enables syncing browser sessions for other synced clients. |
545 const char kEnableSyncTabsForOtherClients[] = | 551 const char kEnableSyncTabsForOtherClients[] = |
546 "enable-sync-tabs-for-other-clients"; | 552 "enable-sync-tabs-for-other-clients"; |
547 | 553 |
548 // Enable syncing app notifications. | 554 // Enable syncing app notifications. |
549 const char kEnableSyncAppNotifications[] = "enable-sync-app-notifications"; | 555 const char kEnableSyncAppNotifications[] = "enable-sync-app-notifications"; |
550 | 556 |
551 // Enables context menu for selecting groups of tabs. | 557 // Enables context menu for selecting groups of tabs. |
552 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu"; | 558 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu"; |
553 | 559 |
554 // Enables the "synced bookmarks" folder. | 560 // Enables the "synced bookmarks" folder. |
555 const char kEnableSyncedBookmarksFolder[] = "enable-synced-bookmarks-folder"; | 561 const char kEnableSyncedBookmarksFolder[] = "enable-synced-bookmarks-folder"; |
556 | 562 |
| 563 // Enables tracking of tasks in profiler for viewing via about:tracking. |
| 564 // To predominantly disable tracking (profiling), use the command line switch: |
| 565 // --enable-tracking=0 |
| 566 // Some tracking will still take place at startup, but it will be turned off |
| 567 // during chrome_browser_main. |
| 568 const char kEnableTracking[] = "enable-tracking"; |
| 569 |
557 // Spawns threads to watch for excessive delays in specified message loops. | 570 // Spawns threads to watch for excessive delays in specified message loops. |
558 // User should set breakpoints on Alarm() to examine problematic thread. | 571 // User should set breakpoints on Alarm() to examine problematic thread. |
559 // | 572 // |
560 // Usage: -enable-watchdog=[ui][io] | 573 // Usage: -enable-watchdog=[ui][io] |
561 // | 574 // |
562 // Order of the listed sub-arguments does not matter. | 575 // Order of the listed sub-arguments does not matter. |
563 const char kEnableWatchdog[] = "enable-watchdog"; | 576 const char kEnableWatchdog[] = "enable-watchdog"; |
564 | 577 |
565 // Uses WebSocket over SPDY. | 578 // Uses WebSocket over SPDY. |
566 const char kEnableWebSocketOverSpdy[] = "enable-websocket-over-spdy"; | 579 const char kEnableWebSocketOverSpdy[] = "enable-websocket-over-spdy"; |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; | 969 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; |
957 | 970 |
958 // TODO(lzheng): Remove this flag once the feature works fine | 971 // TODO(lzheng): Remove this flag once the feature works fine |
959 // (http://crbug.com/74848). | 972 // (http://crbug.com/74848). |
960 // | 973 // |
961 // Disables safebrowsing feature that checks download url and downloads | 974 // Disables safebrowsing feature that checks download url and downloads |
962 // content's hash to make sure the content are not malicious. | 975 // content's hash to make sure the content are not malicious. |
963 const char kSbDisableDownloadProtection[] = | 976 const char kSbDisableDownloadProtection[] = |
964 "safebrowsing-disable-download-protection"; | 977 "safebrowsing-disable-download-protection"; |
965 | 978 |
966 // Controls the support for SDCH filtering (dictionary based expansion of | |
967 // content). By default SDCH filtering is enabled. To disable SDCH filtering, | |
968 // use "--enable-sdch=0" as command line argument. SDCH is currently only | |
969 // supported server-side for searches on google.com. | |
970 const char kEnableSdch[] = "enable-sdch"; | |
971 | |
972 // Enables the showing of an info-bar instructing user they can search directly | 979 // Enables the showing of an info-bar instructing user they can search directly |
973 // from the omnibox. | 980 // from the omnibox. |
974 const char kSearchInOmniboxHint[] = "search-in-omnibox-hint"; | 981 const char kSearchInOmniboxHint[] = "search-in-omnibox-hint"; |
975 | 982 |
976 // The LSID of the account to use for the service process. | 983 // The LSID of the account to use for the service process. |
977 const char kServiceAccountLsid[] = "service-account-lsid"; | 984 const char kServiceAccountLsid[] = "service-account-lsid"; |
978 | 985 |
979 // Annotates forms with Autofill field type predictions. | 986 // Annotates forms with Autofill field type predictions. |
980 const char kShowAutofillTypePredictions[] = "show-autofill-type-predictions"; | 987 const char kShowAutofillTypePredictions[] = "show-autofill-type-predictions"; |
981 | 988 |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1284 | 1291 |
1285 // ----------------------------------------------------------------------------- | 1292 // ----------------------------------------------------------------------------- |
1286 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1293 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1287 // | 1294 // |
1288 // You were going to just dump your switches here, weren't you? Instead, please | 1295 // You were going to just dump your switches here, weren't you? Instead, please |
1289 // put them in alphabetical order above, or in order inside the appropriate | 1296 // put them in alphabetical order above, or in order inside the appropriate |
1290 // ifdef at the bottom. The order should match the header. | 1297 // ifdef at the bottom. The order should match the header. |
1291 // ----------------------------------------------------------------------------- | 1298 // ----------------------------------------------------------------------------- |
1292 | 1299 |
1293 } // namespace switches | 1300 } // namespace switches |
OLD | NEW |