Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 1127163004: Delete unused code in chrome/common or mark them as platform specific. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 const char kEnablePotentiallyAnnoyingSecurityFeatures[] = 501 const char kEnablePotentiallyAnnoyingSecurityFeatures[] =
502 "enable-potentially-annoying-security-features"; 502 "enable-potentially-annoying-security-features";
503 503
504 // Enables the Power overlay in Settings. 504 // Enables the Power overlay in Settings.
505 const char kEnablePowerOverlay[] = "enable-power-overlay"; 505 const char kEnablePowerOverlay[] = "enable-power-overlay";
506 506
507 // Enables showing unregistered printers in print preview 507 // Enables showing unregistered printers in print preview
508 const char kEnablePrintPreviewRegisterPromos[] = 508 const char kEnablePrintPreviewRegisterPromos[] =
509 "enable-print-preview-register-promos"; 509 "enable-print-preview-register-promos";
510 510
511 // Enable Privet storage.
512 const char kEnablePrivetStorage[] = "enable-privet-storage";
513
514 // Enables tracking of tasks in profiler for viewing via about:profiler. 511 // Enables tracking of tasks in profiler for viewing via about:profiler.
515 // To predominantly disable tracking (profiling), use the command line switch: 512 // To predominantly disable tracking (profiling), use the command line switch:
516 // --enable-profiling=0 513 // --enable-profiling=0
517 // Some tracking will still take place at startup, but it will be turned off 514 // Some tracking will still take place at startup, but it will be turned off
518 // during chrome_browser_main. 515 // during chrome_browser_main.
519 const char kEnableProfiling[] = "enable-profiling"; 516 const char kEnableProfiling[] = "enable-profiling";
520 517
521 // Enables query in the omnibox. 518 // Enables query in the omnibox.
522 const char kEnableQueryExtraction[] = "enable-query-extraction"; 519 const char kEnableQueryExtraction[] = "enable-query-extraction";
523 520
524 // Enables support for the QUIC protocol. This is a temporary testing flag. 521 // Enables support for the QUIC protocol. This is a temporary testing flag.
525 const char kEnableQuic[] = "enable-quic"; 522 const char kEnableQuic[] = "enable-quic";
526 523
527 // Disable use of pacing of QUIC packets. 524 // Disable use of pacing of QUIC packets.
528 // This only has an effect if QUIC protocol is enabled. 525 // This only has an effect if QUIC protocol is enabled.
529 const char kEnableQuicPacing[] = "enable-quic-pacing"; 526 const char kEnableQuicPacing[] = "enable-quic-pacing";
530 527
531 // Enable use of Chromium's port selection for the ephemeral port via bind(). 528 // Enable use of Chromium's port selection for the ephemeral port via bind().
532 // This only has an effect if QUIC protocol is enabled. 529 // This only has an effect if QUIC protocol is enabled.
533 const char kEnableQuicPortSelection[] = "enable-quic-port-selection"; 530 const char kEnableQuicPortSelection[] = "enable-quic-port-selection";
534 531
535 // Enables context-sensitive reader mode button in the toolbar.
536 const char kEnableReaderModeToolbarIcon[] =
537 "enable-reader-mode-toolbar-icon";
538
539 // Enables save password prompt bubble. 532 // Enables save password prompt bubble.
540 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble"; 533 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble";
541 534
542 // Enables SDCH for https schemes.
543 const char kEnableSdchOverHttps[] = "enable-sdch-over-https";
544
545 // Enables SDCH persistence. 535 // Enables SDCH persistence.
546 const char kEnableSdchPersistence[] = "enable-sdch-persistence"; 536 const char kEnableSdchPersistence[] = "enable-sdch-persistence";
547 537
548 // Enables using bubbles for session restore request instead of infobars. 538 // Enables using bubbles for session restore request instead of infobars.
549 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; 539 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble";
550 540
551 // Enable or disable settings in a separate browser window per profile 541 // Enable or disable settings in a separate browser window per profile
552 // (see SettingsWindowEnabled() below). 542 // (see SettingsWindowEnabled() below).
553 const char kEnableSettingsWindow[] = "enable-settings-window"; 543 const char kEnableSettingsWindow[] = "enable-settings-window";
554 const char kDisableSettingsWindow[] = "disable-settings-window"; 544 const char kDisableSettingsWindow[] = "disable-settings-window";
(...skipping 15 matching lines...) Expand all
570 // Enables synced articles. 560 // Enables synced articles.
571 const char kEnableSyncArticles[] = "enable-sync-articles"; 561 const char kEnableSyncArticles[] = "enable-sync-articles";
572 562
573 // Enables user control over muting tab audio from the tab strip. 563 // Enables user control over muting tab audio from the tab strip.
574 const char kEnableTabAudioMuting[] = "enable-tab-audio-muting"; 564 const char kEnableTabAudioMuting[] = "enable-tab-audio-muting";
575 565
576 // Enables fanciful thumbnail processing. Used with NTP for 566 // Enables fanciful thumbnail processing. Used with NTP for
577 // instant-extended-api, where thumbnails are generally smaller. 567 // instant-extended-api, where thumbnails are generally smaller.
578 const char kEnableThumbnailRetargeting[] = "enable-thumbnail-retargeting"; 568 const char kEnableThumbnailRetargeting[] = "enable-thumbnail-retargeting";
579 569
580 // Enables Translate experimental new UX which replaces the infobar.
581 const char kEnableTranslateNewUX[] = "enable-translate-new-ux";
582
583 // Enables Alternate-Protocol when the port is user controlled (> 1024). 570 // Enables Alternate-Protocol when the port is user controlled (> 1024).
584 const char kEnableUserAlternateProtocolPorts[] = 571 const char kEnableUserAlternateProtocolPorts[] =
585 "enable-user-controlled-alternate-protocol-ports"; 572 "enable-user-controlled-alternate-protocol-ports";
586 573
587 // Enables a new "web app" style frame for hosted apps (including bookmark 574 // Enables a new "web app" style frame for hosted apps (including bookmark
588 // apps). 575 // apps).
589 extern const char kEnableWebAppFrame[] = "enable-web-app-frame"; 576 extern const char kEnableWebAppFrame[] = "enable-web-app-frame";
590 577
591 // Enables the Website Settings page on the Settings page. 578 // Enables the Website Settings page on the Settings page.
592 const char kEnableWebsiteSettingsManager[] = "enable-website-settings-manager"; 579 const char kEnableWebsiteSettingsManager[] = "enable-website-settings-manager";
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 635
649 // Displays the First Run experience when the browser is started, regardless of 636 // Displays the First Run experience when the browser is started, regardless of
650 // whether or not it's actually the First Run (this overrides kNoFirstRun). 637 // whether or not it's actually the First Run (this overrides kNoFirstRun).
651 const char kForceFirstRun[] = "force-first-run"; 638 const char kForceFirstRun[] = "force-first-run";
652 639
653 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data 640 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data
654 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids 641 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids
655 // prefixed with the character "t" will be treated as Trigger Variation Ids. 642 // prefixed with the character "t" will be treated as Trigger Variation Ids.
656 const char kForceVariationIds[] = "force-variation-ids"; 643 const char kForceVariationIds[] = "force-variation-ids";
657 644
658 // These flags show the man page on Linux. They are equivalent to each
659 // other.
660 const char kHelp[] = "help";
661 const char kHelpShort[] = "h";
662
663 // Makes Windows happy by allowing it to show "Enable access to this program"
664 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only
665 // shows an error box because the only way to hide Chrome is by uninstalling
666 // it.
667 const char kHideIcons[] = "hide-icons";
668
669 // Enables grouping websites by domain and filtering them by period. 645 // Enables grouping websites by domain and filtering them by period.
670 const char kHistoryEnableGroupByDomain[] = "enable-grouped-history"; 646 const char kHistoryEnableGroupByDomain[] = "enable-grouped-history";
671 647
672 // Specifies which page will be displayed in newly-opened tabs. We need this 648 // Specifies which page will be displayed in newly-opened tabs. We need this
673 // for testing purposes so that the UI tests don't depend on what comes up for 649 // for testing purposes so that the UI tests don't depend on what comes up for
674 // http://google.com. 650 // http://google.com.
675 const char kHomePage[] = "homepage"; 651 const char kHomePage[] = "homepage";
676 652
677 // Comma-separated list of rules that control how hostnames are mapped. 653 // Comma-separated list of rules that control how hostnames are mapped.
678 // 654 //
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 const char kDisableJavaScriptHarmonyShipping[] = 706 const char kDisableJavaScriptHarmonyShipping[] =
731 "disable-javascript-harmony-shipping"; 707 "disable-javascript-harmony-shipping";
732 708
733 // Enables experimental Harmony (ECMAScript 6) features. 709 // Enables experimental Harmony (ECMAScript 6) features.
734 const char kJavaScriptHarmony[] = "javascript-harmony"; 710 const char kJavaScriptHarmony[] = "javascript-harmony";
735 711
736 // Dumps IPC messages sent from renderer processes to the browser process to 712 // Dumps IPC messages sent from renderer processes to the browser process to
737 // the given directory. Used primarily to gather samples for IPC fuzzing. 713 // the given directory. Used primarily to gather samples for IPC fuzzing.
738 const char kIpcDumpDirectory[] = "ipc-dump-directory"; 714 const char kIpcDumpDirectory[] = "ipc-dump-directory";
739 715
740 // Specifies the testcase used by the IPC fuzzer.
741 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase";
742
743 // Used for testing - keeps browser alive after last browser window closes. 716 // Used for testing - keeps browser alive after last browser window closes.
744 const char kKeepAliveForTest[] = "keep-alive-for-test"; 717 const char kKeepAliveForTest[] = "keep-alive-for-test";
745 718
746 // Enable Kiosk mode. 719 // Enable Kiosk mode.
747 const char kKioskMode[] = "kiosk"; 720 const char kKioskMode[] = "kiosk";
748 721
749 // Print automatically in kiosk mode. |kKioskMode| must be set as well. 722 // Print automatically in kiosk mode. |kKioskMode| must be set as well.
750 // See http://crbug.com/31395. 723 // See http://crbug.com/31395.
751 const char kKioskModePrinting[] = "kiosk-printing"; 724 const char kKioskModePrinting[] = "kiosk-printing";
752 725
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 const char kNetLogCaptureMode[] = "net-log-capture-mode"; 768 const char kNetLogCaptureMode[] = "net-log-capture-mode";
796 769
797 // Disables the default browser check. Useful for UI/browser tests where we 770 // Disables the default browser check. Useful for UI/browser tests where we
798 // want to avoid having the default browser info-bar displayed. 771 // want to avoid having the default browser info-bar displayed.
799 const char kNoDefaultBrowserCheck[] = "no-default-browser-check"; 772 const char kNoDefaultBrowserCheck[] = "no-default-browser-check";
800 773
801 // By default, an https page can load images, fonts or frames from an http 774 // By default, an https page can load images, fonts or frames from an http
802 // page. This switch overrides this to block this lesser mixed-content problem. 775 // page. This switch overrides this to block this lesser mixed-content problem.
803 const char kNoDisplayingInsecureContent[] = "no-displaying-insecure-content"; 776 const char kNoDisplayingInsecureContent[] = "no-displaying-insecure-content";
804 777
805 // Don't record/playback events when using record & playback.
806 const char kNoEvents[] = "no-events";
807
808 // Disables all experiments set on about:flags. Does not disable about:flags 778 // Disables all experiments set on about:flags. Does not disable about:flags
809 // itself. Useful if an experiment makes chrome crash at startup: One can start 779 // itself. Useful if an experiment makes chrome crash at startup: One can start
810 // chrome with --no-experiments, disable the problematic lab at about:flags and 780 // chrome with --no-experiments, disable the problematic lab at about:flags and
811 // then restart chrome without this switch again. 781 // then restart chrome without this switch again.
812 const char kNoExperiments[] = "no-experiments"; 782 const char kNoExperiments[] = "no-experiments";
813 783
814 // Skip First Run tasks, whether or not it's actually the First Run. Overridden 784 // Skip First Run tasks, whether or not it's actually the First Run. Overridden
815 // by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't 785 // by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't
816 // prevent first run from occuring the next time chrome is launched without this 786 // prevent first run from occuring the next time chrome is launched without this
817 // flag. 787 // flag.
818 const char kNoFirstRun[] = "no-first-run"; 788 const char kNoFirstRun[] = "no-first-run";
819 789
820 // Whether or not the browser should warn if the profile is on a network share.
821 // This flag is only relevant for Windows currently.
822 const char kNoNetworkProfileWarning[] = "no-network-profile-warning";
823
824 // Don't send hyperlink auditing pings 790 // Don't send hyperlink auditing pings
825 const char kNoPings[] = "no-pings"; 791 const char kNoPings[] = "no-pings";
826 792
827 // Don't use a proxy server, always make direct connections. Overrides any 793 // Don't use a proxy server, always make direct connections. Overrides any
828 // other proxy server flags that are passed. 794 // other proxy server flags that are passed.
829 const char kNoProxyServer[] = "no-proxy-server"; 795 const char kNoProxyServer[] = "no-proxy-server";
830 796
831 // Disables the service process from adding itself as an autorun process. This 797 // Disables the service process from adding itself as an autorun process. This
832 // does not delete existing autorun registrations, it just prevents the service 798 // does not delete existing autorun registrations, it just prevents the service
833 // from registering a new one. 799 // from registering a new one.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 const char kPermissionRequestApiUrl[] = "permission-request-api-url"; 844 const char kPermissionRequestApiUrl[] = "permission-request-api-url";
879 845
880 // Use the PPAPI (Pepper) Flash found at the given path. 846 // Use the PPAPI (Pepper) Flash found at the given path.
881 const char kPpapiFlashPath[] = "ppapi-flash-path"; 847 const char kPpapiFlashPath[] = "ppapi-flash-path";
882 848
883 // Report the given version for the PPAPI (Pepper) Flash. The version should be 849 // Report the given version for the PPAPI (Pepper) Flash. The version should be
884 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it 850 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it
885 // defaults to "10.2.999.999". 851 // defaults to "10.2.999.999".
886 const char kPpapiFlashVersion[] = "ppapi-flash-version"; 852 const char kPpapiFlashVersion[] = "ppapi-flash-version";
887 853
888 // Triggers prerendering of search base page to prefetch results for the typed
889 // omnibox query. Only has an effect when prerender is enabled.
890 const char kPrefetchSearchResults[] = "prefetch-search-results";
891
892 // Triggers prerendering of pages from suggestions in the omnibox. Only has an 854 // Triggers prerendering of pages from suggestions in the omnibox. Only has an
893 // effect when Instant is either disabled or restricted to search, and when 855 // effect when Instant is either disabled or restricted to search, and when
894 // prerender is enabled. 856 // prerender is enabled.
895 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox"; 857 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox";
896 // These are the values the kPrerenderFromOmnibox switch may have, as in 858 // These are the values the kPrerenderFromOmnibox switch may have, as in
897 // "--prerender-from-omnibox=auto". auto: Allow field trial selection. 859 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
898 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto"; 860 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto";
899 // disabled: No prerendering. 861 // disabled: No prerendering.
900 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled"; 862 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
901 // enabled: Guaranteed prerendering. 863 // enabled: Guaranteed prerendering.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 const char kSbDisableDownloadProtection[] = 962 const char kSbDisableDownloadProtection[] =
1001 "safebrowsing-disable-download-protection"; 963 "safebrowsing-disable-download-protection";
1002 964
1003 // Disables safebrowsing feature that checks for blacklisted extensions. 965 // Disables safebrowsing feature that checks for blacklisted extensions.
1004 const char kSbDisableExtensionBlacklist[] = 966 const char kSbDisableExtensionBlacklist[] =
1005 "safebrowsing-disable-extension-blacklist"; 967 "safebrowsing-disable-extension-blacklist";
1006 968
1007 // Causes the process to run as a service process. 969 // Causes the process to run as a service process.
1008 const char kServiceProcess[] = "service"; 970 const char kServiceProcess[] = "service";
1009 971
1010 // Sets a token in the token service, for testing.
1011 const char kSetToken[] = "set-token";
1012
1013 // If true the app list will be shown. 972 // If true the app list will be shown.
1014 const char kShowAppList[] = "show-app-list"; 973 const char kShowAppList[] = "show-app-list";
1015 974
1016 // See kHideIcons.
1017 const char kShowIcons[] = "show-icons";
1018
1019 // Command line flag offering a "Show saved copy" option to the user if offline. 975 // Command line flag offering a "Show saved copy" option to the user if offline.
1020 // The various modes are disabled, primary, or secondary. Primary/secondary 976 // The various modes are disabled, primary, or secondary. Primary/secondary
1021 // refers to button placement (for experiment). 977 // refers to button placement (for experiment).
1022 const char kShowSavedCopy[] = "show-saved-copy"; 978 const char kShowSavedCopy[] = "show-saved-copy";
1023 979
1024 // Values for the kShowSavedCopy flag. 980 // Values for the kShowSavedCopy flag.
1025 const char kEnableShowSavedCopyPrimary[] = "primary"; 981 const char kEnableShowSavedCopyPrimary[] = "primary";
1026 const char kEnableShowSavedCopySecondary[] = "secondary"; 982 const char kEnableShowSavedCopySecondary[] = "secondary";
1027 const char kDisableShowSavedCopy[] = "disable"; 983 const char kDisableShowSavedCopy[] = "disable";
1028 984
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 const char kTestName[] = "test-name"; 1108 const char kTestName[] = "test-name";
1153 1109
1154 // Disables same-origin check on HTTP resources pushed via a SPDY proxy. 1110 // Disables same-origin check on HTTP resources pushed via a SPDY proxy.
1155 // The value is the host:port of the trusted proxy. 1111 // The value is the host:port of the trusted proxy.
1156 const char kTrustedSpdyProxy[] = "trusted-spdy-proxy"; 1112 const char kTrustedSpdyProxy[] = "trusted-spdy-proxy";
1157 1113
1158 // Experimental. Shows a dialog asking the user to try chrome. This flag is to 1114 // Experimental. Shows a dialog asking the user to try chrome. This flag is to
1159 // be used only by the upgrade process. 1115 // be used only by the upgrade process.
1160 const char kTryChromeAgain[] = "try-chrome-again"; 1116 const char kTryChromeAgain[] = "try-chrome-again";
1161 1117
1162 // Runs un-installation steps that were done by chrome first-run.
1163 const char kUninstall[] = "uninstall";
1164
1165 // Overrides per-origin quota settings to unlimited storage for any 1118 // Overrides per-origin quota settings to unlimited storage for any
1166 // apps/origins. This should be used only for testing purpose. 1119 // apps/origins. This should be used only for testing purpose.
1167 const char kUnlimitedStorage[] = "unlimited-storage"; 1120 const char kUnlimitedStorage[] = "unlimited-storage";
1168 1121
1169 // Treat given (insecure) origins as secure origins. Multiple origins can be 1122 // Treat given (insecure) origins as secure origins. Multiple origins can be
1170 // supplied. Has no effect unless --user-data-dir is also supplied. 1123 // supplied. Has no effect unless --user-data-dir is also supplied.
1171 // Example: 1124 // Example:
1172 // --unsafety-treat-insecure-origin-as-secure=http://a.test,http://b.test 1125 // --unsafety-treat-insecure-origin-as-secure=http://a.test,http://b.test
1173 // --user-data-dir=/test/only/profile/dir 1126 // --user-data-dir=/test/only/profile/dir
1174 const char kUnsafetyTreatInsecureOriginAsSecure[] = 1127 const char kUnsafetyTreatInsecureOriginAsSecure[] =
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 const char kEnableAccessibilityTabSwitcher[] = 1186 const char kEnableAccessibilityTabSwitcher[] =
1234 "enable-accessibility-tab-switcher"; 1187 "enable-accessibility-tab-switcher";
1235 1188
1236 // Enables Contextual Search. 1189 // Enables Contextual Search.
1237 const char kEnableContextualSearch[] = "enable-contextual-search"; 1190 const char kEnableContextualSearch[] = "enable-contextual-search";
1238 1191
1239 // Enables the DOM distiller animated button UI for Android. 1192 // Enables the DOM distiller animated button UI for Android.
1240 const char kEnableDomDistillerButtonAnimation[] = 1193 const char kEnableDomDistillerButtonAnimation[] =
1241 "enable-dom-distiller-button-animation"; 1194 "enable-dom-distiller-button-animation";
1242 1195
1196 // Enables instant search clicks feature.
1197 const char kEnableInstantSearchClicks[] = "enable-instant-search-clicks";
1198
1199 // Enables context-sensitive reader mode button in the toolbar.
1200 const char kEnableReaderModeToolbarIcon[] =
1201 "enable-reader-mode-toolbar-icon";
1202
1243 // Enables zero suggest functionality on Dev channel, showing most visited 1203 // Enables zero suggest functionality on Dev channel, showing most visited
1244 // sites as default suggestions. 1204 // sites as default suggestions.
1245 const char kEnableZeroSuggestMostVisited[] = 1205 const char kEnableZeroSuggestMostVisited[] =
1246 "enable-zero-suggest-most-visited"; 1206 "enable-zero-suggest-most-visited";
1247 1207
1248 // Enable zero suggest functionality on Dev channel, showing most visited 1208 // Enable zero suggest functionality on Dev channel, showing most visited
1249 // sites on non-search-result pages as default suggestions. 1209 // sites on non-search-result pages as default suggestions.
1250 const char kEnableZeroSuggestMostVisitedWithoutSerp[] = 1210 const char kEnableZeroSuggestMostVisitedWithoutSerp[] =
1251 "enable-zero-suggest-most-visited-without-serp"; 1211 "enable-zero-suggest-most-visited-without-serp";
1252 1212
1253 // Enables instant search clicks feature. 1213 // Triggers prerendering of search base page to prefetch results for the typed
1254 const char kEnableInstantSearchClicks[] = "enable-instant-search-clicks"; 1214 // omnibox query. Only has an effect when prerender is enabled.
1255 1215 const char kPrefetchSearchResults[] = "prefetch-search-results";
1256 #endif 1216 #endif // defined(OS_ANDROID)
1257 1217
1258 #if defined(USE_ASH) 1218 #if defined(USE_ASH)
1259 const char kOpenAsh[] = "open-ash"; 1219 const char kOpenAsh[] = "open-ash";
1260 #endif 1220 #endif
1261 1221
1262 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 1222 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
1223 // These flags show the man page on Linux. They are equivalent to each
1224 // other.
1225 const char kHelp[] = "help";
1226 const char kHelpShort[] = "h";
1227
1263 // Specifies which password store to use (detect, default, gnome, kwallet). 1228 // Specifies which password store to use (detect, default, gnome, kwallet).
1264 const char kPasswordStore[] = "password-store"; 1229 const char kPasswordStore[] = "password-store";
1265 #endif 1230 #endif
1266 1231
1267 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 1232 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
1268 // Triggers migration of user data directory to another directory 1233 // Triggers migration of user data directory to another directory
1269 // specified as a parameter. The migration is done under singleton lock, 1234 // specified as a parameter. The migration is done under singleton lock,
1270 // and sanity checks are made to avoid corrupting the profile. 1235 // and sanity checks are made to avoid corrupting the profile.
1271 // The browser exits after migration is complete. 1236 // The browser exits after migration is complete.
1272 const char kMigrateDataDirForSxS[] = "migrate-data-dir-for-sxs"; 1237 const char kMigrateDataDirForSxS[] = "migrate-data-dir-for-sxs";
1273 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) 1238 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
1274 1239
1275 #if defined(OS_MACOSX) 1240 #if defined(OS_MACOSX)
1276 // Prevents Chrome from quitting when Chrome Apps are open. 1241 // Prevents Chrome from quitting when Chrome Apps are open.
1277 const char kAppsKeepChromeAliveInTests[] = "apps-keep-chrome-alive-in-tests"; 1242 const char kAppsKeepChromeAliveInTests[] = "apps-keep-chrome-alive-in-tests";
1278 1243
1279 // Shows a notification when quitting Chrome with hosted apps running. Default 1244 // Shows a notification when quitting Chrome with hosted apps running. Default
1280 // behavior is to also quit all hosted apps. 1245 // behavior is to also quit all hosted apps.
1281 const char kHostedAppQuitNotification[] = "enable-hosted-app-quit-notification"; 1246 const char kHostedAppQuitNotification[] = "enable-hosted-app-quit-notification";
1282 1247
1283 // Disables app shim creation for hosted apps on Mac. 1248 // Disables app shim creation for hosted apps on Mac.
1284 const char kDisableHostedAppShimCreation[] = "disable-hosted-app-shim-creation"; 1249 const char kDisableHostedAppShimCreation[] = "disable-hosted-app-shim-creation";
1285 1250
1286 // Forcibly disables Lion-style on newer OSes, to allow developers to test the 1251 // Forcibly disables Lion-style on newer OSes, to allow developers to test the
1287 // older, SnowLeopard-style fullscreen. 1252 // older, SnowLeopard-style fullscreen.
1288 const char kDisableSystemFullscreenForTesting[] = 1253 const char kDisableSystemFullscreenForTesting[] =
1289 "disable-system-fullscreen-for-testing"; 1254 "disable-system-fullscreen-for-testing";
1290 1255
1291 // A process type (switches::kProcessType) that relaunches the browser. See 1256 // Enables Translate experimental new UX which replaces the infobar.
1292 // chrome/browser/mac/relauncher.h. 1257 const char kEnableTranslateNewUX[] = "enable-translate-new-ux";
1293 const char kRelauncherProcess[] = "relauncher";
1294 1258
1295 // This is how the metrics client ID is passed from the browser process to its 1259 // This is how the metrics client ID is passed from the browser process to its
1296 // children. With Crashpad, the metrics client ID is distinct from the crash 1260 // children. With Crashpad, the metrics client ID is distinct from the crash
1297 // client ID. 1261 // client ID.
1298 const char kMetricsClientID[] = "metrics-client-id"; 1262 const char kMetricsClientID[] = "metrics-client-id";
1299 1263
1300 #endif 1264 // A process type (switches::kProcessType) that relaunches the browser. See
1265 // chrome/browser/mac/relauncher.h.
1266 const char kRelauncherProcess[] = "relauncher";
1267 #endif // defined(OS_MACOSX)
1301 1268
1302 // Use bubbles for content permissions requests instead of infobars. 1269 // Use bubbles for content permissions requests instead of infobars.
1303 const char kEnablePermissionsBubbles[] = "enable-permissions-bubbles"; 1270 const char kEnablePermissionsBubbles[] = "enable-permissions-bubbles";
1304 1271
1305 #if defined(OS_WIN) 1272 #if defined(OS_WIN)
1306 // Fallback to XPS. By default connector uses CDD. 1273 // Fallback to XPS. By default connector uses CDD.
1307 const char kEnableCloudPrintXps[] = "enable-cloud-print-xps"; 1274 const char kEnableCloudPrintXps[] = "enable-cloud-print-xps";
1308 1275
1309 // Force-enables the profile shortcut manager. This is needed for tests since 1276 // Force-enables the profile shortcut manager. This is needed for tests since
1310 // they use a custom-user-data-dir which disables this. 1277 // they use a custom-user-data-dir which disables this.
1311 const char kEnableProfileShortcutManager[] = "enable-profile-shortcut-manager"; 1278 const char kEnableProfileShortcutManager[] = "enable-profile-shortcut-manager";
1312 1279
1313 // For the DelegateExecute verb handler to launch Chrome in metro mode on 1280 // For the DelegateExecute verb handler to launch Chrome in metro mode on
1314 // Windows 8 and higher. Used when relaunching metro Chrome. 1281 // Windows 8 and higher. Used when relaunching metro Chrome.
1315 const char kForceImmersive[] = "force-immersive"; 1282 const char kForceImmersive[] = "force-immersive";
1316 1283
1284 // Whether or not the browser should warn if the profile is on a network share.
1285 // This flag is only relevant for Windows currently.
1286 const char kNoNetworkProfileWarning[] = "no-network-profile-warning";
1287
1317 // For the DelegateExecute verb handler to launch Chrome in desktop mode on 1288 // For the DelegateExecute verb handler to launch Chrome in desktop mode on
1318 // Windows 8 and higher. Used when relaunching metro Chrome. 1289 // Windows 8 and higher. Used when relaunching metro Chrome.
1319 const char kForceDesktop[] = "force-desktop"; 1290 const char kForceDesktop[] = "force-desktop";
1320 1291
1292 // Makes Windows happy by allowing it to show "Enable access to this program"
1293 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only
1294 // shows an error box because the only way to hide Chrome is by uninstalling
1295 // it.
1296 const char kHideIcons[] = "hide-icons";
1297
1321 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut. 1298 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut.
1322 const char kRelaunchShortcut[] = "relaunch-shortcut"; 1299 const char kRelaunchShortcut[] = "relaunch-shortcut";
1323 1300
1301 // See kHideIcons.
1302 const char kShowIcons[] = "show-icons";
1303
1304 // Runs un-installation steps that were done by chrome first-run.
1305 const char kUninstall[] = "uninstall";
1306
1324 // Requests that Chrome launch the Metro viewer process via the given appid 1307 // Requests that Chrome launch the Metro viewer process via the given appid
1325 // (which is assumed to be registered as default browser) and synchronously 1308 // (which is assumed to be registered as default browser) and synchronously
1326 // connect to it. 1309 // connect to it.
1327 const char kViewerLaunchViaAppId[] = "viewer-launch-via-appid"; 1310 const char kViewerLaunchViaAppId[] = "viewer-launch-via-appid";
1328 1311
1329 // Waits for the given handle to be signaled before relaunching metro Chrome on 1312 // Waits for the given handle to be signaled before relaunching metro Chrome on
1330 // Windows 8 and higher. 1313 // Windows 8 and higher.
1331 const char kWaitForMutex[] = "wait-for-mutex"; 1314 const char kWaitForMutex[] = "wait-for-mutex";
1332 1315
1333 // Indicates that chrome was launched to service a search request in Windows 8. 1316 // Indicates that chrome was launched to service a search request in Windows 8.
1334 const char kWindows8Search[] = "windows8-search"; 1317 const char kWindows8Search[] = "windows8-search";
1318 #endif // defined(OS_WIN)
1319
1320 #if defined(ENABLE_IPC_FUZZER)
1321 // Specifies the testcase used by the IPC fuzzer.
1322 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase";
1335 #endif 1323 #endif
1336 1324
1337 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) 1325 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD)
1338 // Enables support to debug printing subsystem. 1326 // Enables support to debug printing subsystem.
1339 const char kDebugPrint[] = "debug-print"; 1327 const char kDebugPrint[] = "debug-print";
1340 #endif 1328 #endif
1341 1329
1342 #ifndef NDEBUG 1330 #ifndef NDEBUG
1343 // Enables overriding the path of file manager extension. 1331 // Enables overriding the path of file manager extension.
1344 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; 1332 const char kFileManagerExtensionPath[] = "filemgr-ext-path";
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 1397
1410 // ----------------------------------------------------------------------------- 1398 // -----------------------------------------------------------------------------
1411 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1399 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1412 // 1400 //
1413 // You were going to just dump your switches here, weren't you? Instead, please 1401 // You were going to just dump your switches here, weren't you? Instead, please
1414 // put them in alphabetical order above, or in order inside the appropriate 1402 // put them in alphabetical order above, or in order inside the appropriate
1415 // ifdef at the bottom. The order should match the header. 1403 // ifdef at the bottom. The order should match the header.
1416 // ----------------------------------------------------------------------------- 1404 // -----------------------------------------------------------------------------
1417 1405
1418 } // namespace switches 1406 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698