| 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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 // Performs bookmark importing from an HTML file. The value associated with | 772 // Performs bookmark importing from an HTML file. The value associated with |
| 773 // this setting encodes the file path. It may be used jointly with kImport. | 773 // this setting encodes the file path. It may be used jointly with kImport. |
| 774 const char kImportFromFile[] = "import-from-file"; | 774 const char kImportFromFile[] = "import-from-file"; |
| 775 | 775 |
| 776 // Causes the browser to launch directly in incognito mode. | 776 // Causes the browser to launch directly in incognito mode. |
| 777 const char kIncognito[] = "incognito"; | 777 const char kIncognito[] = "incognito"; |
| 778 | 778 |
| 779 // Controls the Instant field trial. Valid values are defined below. If an | 779 // Controls the Instant field trial. Valid values are defined below. If an |
| 780 // unknown value is supplied on the command line, the field trial is disabled. | 780 // unknown value is supplied on the command line, the field trial is disabled. |
| 781 const char kInstantFieldTrial[] = "instant-field-trial"; | 781 const char kInstantFieldTrial[] = "instant-field-trial"; |
| 782 // The field trial is forced into the CONTROL group. | |
| 783 const char kInstantFieldTrialControl[] = "control"; | |
| 784 // The field trial is forced into the HIDDEN group. | 782 // The field trial is forced into the HIDDEN group. |
| 785 const char kInstantFieldTrialHidden[] = "hidden"; | 783 const char kInstantFieldTrialHidden[] = "hidden"; |
| 786 // The field trial is forced into the INSTANT group. | 784 // The field trial is forced into the INSTANT group. |
| 787 const char kInstantFieldTrialInstant[] = "instant"; | 785 const char kInstantFieldTrialInstant[] = "instant"; |
| 788 // The field trial is forced into the SILENT group. | 786 // The field trial is forced into the SILENT group. |
| 789 const char kInstantFieldTrialSilent[] = "silent"; | 787 const char kInstantFieldTrialSilent[] = "silent"; |
| 790 // The field trial is forced into the SUGGEST group. | 788 // The field trial is forced into the SUGGEST group. |
| 791 const char kInstantFieldTrialSuggest[] = "suggest"; | 789 const char kInstantFieldTrialSuggest[] = "suggest"; |
| 792 | 790 |
| 793 // URL to use for instant. If specified this overrides the url from the | 791 // URL to use for instant. If specified this overrides the url from the |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 const char kPpapiFlashFieldTrial[] = "ppapi-flash-field-trial"; | 969 const char kPpapiFlashFieldTrial[] = "ppapi-flash-field-trial"; |
| 972 // Forces to disable PPAPI Flash when a new PPAPI Flash is downloaded. | 970 // Forces to disable PPAPI Flash when a new PPAPI Flash is downloaded. |
| 973 const char kPpapiFlashFieldTrialDisableByDefault[] = "disable-by-default"; | 971 const char kPpapiFlashFieldTrialDisableByDefault[] = "disable-by-default"; |
| 974 // Forces to enable PPAPI Flash when a new PPAPI Flash is downloaded. | 972 // Forces to enable PPAPI Flash when a new PPAPI Flash is downloaded. |
| 975 const char kPpapiFlashFieldTrialEnableByDefault[] = "enable-by-default"; | 973 const char kPpapiFlashFieldTrialEnableByDefault[] = "enable-by-default"; |
| 976 | 974 |
| 977 // Forces the PPAPI version of Flash (if it's being used) to run in the | 975 // Forces the PPAPI version of Flash (if it's being used) to run in the |
| 978 // renderer process rather than in a separate plugin process. | 976 // renderer process rather than in a separate plugin process. |
| 979 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process"; | 977 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process"; |
| 980 | 978 |
| 981 // Aggressively preloads the default search engine's Instant URL, so it's ready | |
| 982 // to receive queries. Only has an effect if Instant is turned on (via "Enable | |
| 983 // Instant for faster searching and browsing" in Preferences -> Basics). | |
| 984 const char kPreloadInstantSearch[] = "preload-instant-search"; | |
| 985 | |
| 986 // Triggers prerendering of pages from suggestions in the omnibox. Only has an | 979 // Triggers prerendering of pages from suggestions in the omnibox. Only has an |
| 987 // effect when Instant is either disabled or restricted to search, and when | 980 // effect when Instant is either disabled or restricted to search, and when |
| 988 // prerender is enabled. | 981 // prerender is enabled. |
| 989 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox"; | 982 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox"; |
| 990 // These are the values the kPrerenderFromOmnibox switch may have, as in | 983 // These are the values the kPrerenderFromOmnibox switch may have, as in |
| 991 // "--prerender-from-omnibox=auto". auto: Allow field trial selection. | 984 // "--prerender-from-omnibox=auto". auto: Allow field trial selection. |
| 992 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto"; | 985 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto"; |
| 993 // disabled: No prerendering. | 986 // disabled: No prerendering. |
| 994 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled"; | 987 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled"; |
| 995 // enabled: Guaranteed prerendering. | 988 // enabled: Guaranteed prerendering. |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 | 1416 |
| 1424 // ----------------------------------------------------------------------------- | 1417 // ----------------------------------------------------------------------------- |
| 1425 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1418 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1426 // | 1419 // |
| 1427 // You were going to just dump your switches here, weren't you? Instead, please | 1420 // You were going to just dump your switches here, weren't you? Instead, please |
| 1428 // put them in alphabetical order above, or in order inside the appropriate | 1421 // put them in alphabetical order above, or in order inside the appropriate |
| 1429 // ifdef at the bottom. The order should match the header. | 1422 // ifdef at the bottom. The order should match the header. |
| 1430 // ----------------------------------------------------------------------------- | 1423 // ----------------------------------------------------------------------------- |
| 1431 | 1424 |
| 1432 } // namespace switches | 1425 } // namespace switches |
| OLD | NEW |