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 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 | 1112 |
1113 // Enables overriding the path for the default authentication extension. | 1113 // Enables overriding the path for the default authentication extension. |
1114 const char kAuthExtensionPath[] = "auth-ext-path"; | 1114 const char kAuthExtensionPath[] = "auth-ext-path"; |
1115 | 1115 |
1116 // Enables archive file (zip) handling in file manager. | 1116 // Enables archive file (zip) handling in file manager. |
1117 const char kEnableArchives[] = "enable-archives"; | 1117 const char kEnableArchives[] = "enable-archives"; |
1118 | 1118 |
1119 #ifndef NDEBUG | 1119 #ifndef NDEBUG |
1120 // Skips all other OOBE pages after user login. | 1120 // Skips all other OOBE pages after user login. |
1121 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin"; | 1121 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin"; |
1122 #endif // NDEBUG | 1122 |
1123 #endif // OS_CHROMEOS | 1123 // Enables overriding the path off file manager extension. |
| 1124 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; |
| 1125 #endif |
| 1126 #endif |
1124 | 1127 |
1125 #if defined(OS_POSIX) | 1128 #if defined(OS_POSIX) |
1126 // A flag, generated internally by Chrome for renderer and other helper process | 1129 // A flag, generated internally by Chrome for renderer and other helper process |
1127 // command lines on Linux and Mac. It tells the helper process to enable crash | 1130 // command lines on Linux and Mac. It tells the helper process to enable crash |
1128 // dumping and reporting, because helpers cannot access the profile or other | 1131 // dumping and reporting, because helpers cannot access the profile or other |
1129 // files needed to make this decision. | 1132 // files needed to make this decision. |
1130 const char kEnableCrashReporter[] = "enable-crash-reporter"; | 1133 const char kEnableCrashReporter[] = "enable-crash-reporter"; |
1131 | 1134 |
1132 // Bypass the error dialog when the profile lock couldn't be attained. | 1135 // Bypass the error dialog when the profile lock couldn't be attained. |
1133 // This switch is used during automated testing. | 1136 // This switch is used during automated testing. |
1134 const char kNoProcessSingletonDialog[] = "no-process-singleton-dialog"; | 1137 const char kNoProcessSingletonDialog[] = "no-process-singleton-dialog"; |
1135 | 1138 |
1136 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 1139 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
1137 // Specifies which password store to use (detect, default, gnome, kwallet). | 1140 // Specifies which password store to use (detect, default, gnome, kwallet). |
1138 const char kPasswordStore[] = "password-store"; | 1141 const char kPasswordStore[] = "password-store"; |
1139 #endif | 1142 #endif |
1140 #endif // OS_POSIX | 1143 #endif |
1141 | 1144 |
1142 #if defined(OS_MACOSX) | 1145 #if defined(OS_MACOSX) |
1143 // Enables the tabs expose feature ( http://crbug.com/50307 ). | 1146 // Enables the tabs expose feature ( http://crbug.com/50307 ). |
1144 const char kEnableExposeForTabs[] = "enable-expose-for-tabs"; | 1147 const char kEnableExposeForTabs[] = "enable-expose-for-tabs"; |
1145 | 1148 |
1146 // A process type (switches::kProcessType) that relaunches the browser. See | 1149 // A process type (switches::kProcessType) that relaunches the browser. See |
1147 // chrome/browser/mac/relauncher.h. | 1150 // chrome/browser/mac/relauncher.h. |
1148 const char kRelauncherProcess[] = "relauncher"; | 1151 const char kRelauncherProcess[] = "relauncher"; |
1149 | 1152 |
1150 // Use mock keychain for testing purposes, which prevents blocking dialogs from | 1153 // Use mock keychain for testing purposes, which prevents blocking dialogs from |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 const char kSetToken[] = "set-token"; | 1200 const char kSetToken[] = "set-token"; |
1198 | 1201 |
1199 // Debug only switch to specify which websocket live experiment host to be used. | 1202 // Debug only switch to specify which websocket live experiment host to be used. |
1200 // If host is specified, it also makes initial delay shorter (5 min to 5 sec) | 1203 // If host is specified, it also makes initial delay shorter (5 min to 5 sec) |
1201 // to make it faster to test websocket live experiment code. | 1204 // to make it faster to test websocket live experiment code. |
1202 const char kWebSocketLiveExperimentHost[] = "websocket-live-experiment-host"; | 1205 const char kWebSocketLiveExperimentHost[] = "websocket-live-experiment-host"; |
1203 | 1206 |
1204 // Debug only switch to give access to all private extension APIs to | 1207 // Debug only switch to give access to all private extension APIs to |
1205 // any non-component extension that is requesting it. | 1208 // any non-component extension that is requesting it. |
1206 const char kExposePrivateExtensionApi[] = "expose-private-extension-api"; | 1209 const char kExposePrivateExtensionApi[] = "expose-private-extension-api"; |
1207 | 1210 #endif |
1208 // Enables overriding the path of file manager extension. | |
1209 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; | |
1210 #endif // NDEBUG | |
1211 | 1211 |
1212 // Disable print preview (Not exposed via about:flags. Only used for testing.) | 1212 // Disable print preview (Not exposed via about:flags. Only used for testing.) |
1213 const char kDisablePrintPreview[] = "disable-print-preview"; | 1213 const char kDisablePrintPreview[] = "disable-print-preview"; |
1214 | 1214 |
1215 // Enable print preview (no PDF viewer, thus not supported with Chromium). | 1215 // Enable print preview (no PDF viewer, thus not supported with Chromium). |
1216 // kDisablePrintPreview overrides this. | 1216 // kDisablePrintPreview overrides this. |
1217 const char kEnablePrintPreview[] = "enable-print-preview"; | 1217 const char kEnablePrintPreview[] = "enable-print-preview"; |
1218 | 1218 |
1219 // Enables the benchmarking extensions. | 1219 // Enables the benchmarking extensions. |
1220 const char kEnableBenchmarking[] = "enable-benchmarking"; | 1220 const char kEnableBenchmarking[] = "enable-benchmarking"; |
(...skipping 11 matching lines...) Expand all Loading... |
1232 | 1232 |
1233 // ----------------------------------------------------------------------------- | 1233 // ----------------------------------------------------------------------------- |
1234 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1234 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1235 // | 1235 // |
1236 // You were going to just dump your switches here, weren't you? Instead, | 1236 // You were going to just dump your switches here, weren't you? Instead, |
1237 // please put them in alphabetical order above, or in order inside the | 1237 // please put them in alphabetical order above, or in order inside the |
1238 // appropriate ifdef at the bottom. The order should match the header. | 1238 // appropriate ifdef at the bottom. The order should match the header. |
1239 // ----------------------------------------------------------------------------- | 1239 // ----------------------------------------------------------------------------- |
1240 | 1240 |
1241 } // namespace switches | 1241 } // namespace switches |
OLD | NEW |