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 | |
528 // Enables the IsSearchProviderInstalled and InstallSearchProvider with an | 522 // Enables the IsSearchProviderInstalled and InstallSearchProvider with an |
529 // extra parameter to indicate if the provider should be the default. | 523 // extra parameter to indicate if the provider should be the default. |
530 const char kEnableSearchProviderApiV2[] = "enable-search-provider-api-v2"; | 524 const char kEnableSearchProviderApiV2[] = "enable-search-provider-api-v2"; |
531 | 525 |
532 // Enables the use of the ShortcutsProvider for autocomplete results. | 526 // Enables the use of the ShortcutsProvider for autocomplete results. |
533 const char kEnableShortcutsProvider[] = "enable-shortcuts-provider"; | 527 const char kEnableShortcutsProvider[] = "enable-shortcuts-provider"; |
534 | 528 |
535 // On platforms that support it, enables smooth scroll animation. | 529 // On platforms that support it, enables smooth scroll animation. |
536 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling"; | 530 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling"; |
537 | 531 |
538 // Enables syncing extension settings. | 532 // Enables syncing extension settings. |
539 const char kEnableSyncExtensionSettings[] = "enable-sync-extension-settings"; | 533 const char kEnableSyncExtensionSettings[] = "enable-sync-extension-settings"; |
540 | 534 |
541 // Enables OAuth sign-in for sync. | 535 // Enables OAuth sign-in for sync. |
542 const char kEnableSyncOAuth[] = "enable-sync-oauth"; | 536 const char kEnableSyncOAuth[] = "enable-sync-oauth"; |
543 | 537 |
544 // Enables syncing custom search engines. | 538 // Enables syncing custom search engines. |
545 const char kEnableSyncSearchEngines[] = "enable-sync-search-engines"; | 539 const char kEnableSyncSearchEngines[] = "enable-sync-search-engines"; |
546 | 540 |
547 // Enables syncing browser sessions. | 541 // Enables syncing browser sessions. |
548 const char kEnableSyncTabs[] = "enable-sync-tabs"; | 542 const char kEnableSyncTabs[] = "enable-sync-tabs"; |
549 | 543 |
550 // Enables syncing browser sessions for other synced clients. | 544 // Enables syncing browser sessions for other synced clients. |
551 const char kEnableSyncTabsForOtherClients[] = | 545 const char kEnableSyncTabsForOtherClients[] = |
552 "enable-sync-tabs-for-other-clients"; | 546 "enable-sync-tabs-for-other-clients"; |
553 | 547 |
554 // Enable syncing app notifications. | 548 // Enable syncing app notifications. |
555 const char kEnableSyncAppNotifications[] = "enable-sync-app-notifications"; | 549 const char kEnableSyncAppNotifications[] = "enable-sync-app-notifications"; |
556 | 550 |
557 // Enables context menu for selecting groups of tabs. | 551 // Enables context menu for selecting groups of tabs. |
558 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu"; | 552 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu"; |
559 | 553 |
560 // Enables the "synced bookmarks" folder. | 554 // Enables the "synced bookmarks" folder. |
561 const char kEnableSyncedBookmarksFolder[] = "enable-synced-bookmarks-folder"; | 555 const char kEnableSyncedBookmarksFolder[] = "enable-synced-bookmarks-folder"; |
562 | 556 |
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 | |
570 // Spawns threads to watch for excessive delays in specified message loops. | 557 // Spawns threads to watch for excessive delays in specified message loops. |
571 // User should set breakpoints on Alarm() to examine problematic thread. | 558 // User should set breakpoints on Alarm() to examine problematic thread. |
572 // | 559 // |
573 // Usage: -enable-watchdog=[ui][io] | 560 // Usage: -enable-watchdog=[ui][io] |
574 // | 561 // |
575 // Order of the listed sub-arguments does not matter. | 562 // Order of the listed sub-arguments does not matter. |
576 const char kEnableWatchdog[] = "enable-watchdog"; | 563 const char kEnableWatchdog[] = "enable-watchdog"; |
577 | 564 |
578 // Uses WebSocket over SPDY. | 565 // Uses WebSocket over SPDY. |
579 const char kEnableWebSocketOverSpdy[] = "enable-websocket-over-spdy"; | 566 const char kEnableWebSocketOverSpdy[] = "enable-websocket-over-spdy"; |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; | 956 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; |
970 | 957 |
971 // TODO(lzheng): Remove this flag once the feature works fine | 958 // TODO(lzheng): Remove this flag once the feature works fine |
972 // (http://crbug.com/74848). | 959 // (http://crbug.com/74848). |
973 // | 960 // |
974 // Disables safebrowsing feature that checks download url and downloads | 961 // Disables safebrowsing feature that checks download url and downloads |
975 // content's hash to make sure the content are not malicious. | 962 // content's hash to make sure the content are not malicious. |
976 const char kSbDisableDownloadProtection[] = | 963 const char kSbDisableDownloadProtection[] = |
977 "safebrowsing-disable-download-protection"; | 964 "safebrowsing-disable-download-protection"; |
978 | 965 |
| 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 |
979 // Enables the showing of an info-bar instructing user they can search directly | 972 // Enables the showing of an info-bar instructing user they can search directly |
980 // from the omnibox. | 973 // from the omnibox. |
981 const char kSearchInOmniboxHint[] = "search-in-omnibox-hint"; | 974 const char kSearchInOmniboxHint[] = "search-in-omnibox-hint"; |
982 | 975 |
983 // The LSID of the account to use for the service process. | 976 // The LSID of the account to use for the service process. |
984 const char kServiceAccountLsid[] = "service-account-lsid"; | 977 const char kServiceAccountLsid[] = "service-account-lsid"; |
985 | 978 |
986 // Annotates forms with Autofill field type predictions. | 979 // Annotates forms with Autofill field type predictions. |
987 const char kShowAutofillTypePredictions[] = "show-autofill-type-predictions"; | 980 const char kShowAutofillTypePredictions[] = "show-autofill-type-predictions"; |
988 | 981 |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1291 | 1284 |
1292 // ----------------------------------------------------------------------------- | 1285 // ----------------------------------------------------------------------------- |
1293 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1286 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1294 // | 1287 // |
1295 // You were going to just dump your switches here, weren't you? Instead, please | 1288 // You were going to just dump your switches here, weren't you? Instead, please |
1296 // put them in alphabetical order above, or in order inside the appropriate | 1289 // put them in alphabetical order above, or in order inside the appropriate |
1297 // ifdef at the bottom. The order should match the header. | 1290 // ifdef at the bottom. The order should match the header. |
1298 // ----------------------------------------------------------------------------- | 1291 // ----------------------------------------------------------------------------- |
1299 | 1292 |
1300 } // namespace switches | 1293 } // namespace switches |
OLD | NEW |