| 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 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) | 1208 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 1209 | 1209 |
| 1210 #if defined(OS_MACOSX) | 1210 #if defined(OS_MACOSX) |
| 1211 // Prevents Chrome from quitting when Chrome Apps are open. | 1211 // Prevents Chrome from quitting when Chrome Apps are open. |
| 1212 const char kAppsKeepChromeAliveInTests[] = "apps-keep-chrome-alive-in-tests"; | 1212 const char kAppsKeepChromeAliveInTests[] = "apps-keep-chrome-alive-in-tests"; |
| 1213 | 1213 |
| 1214 // Shows a notification when quitting Chrome with hosted apps running. Default | 1214 // Shows a notification when quitting Chrome with hosted apps running. Default |
| 1215 // behavior is to also quit all hosted apps. | 1215 // behavior is to also quit all hosted apps. |
| 1216 const char kHostedAppQuitNotification[] = "enable-hosted-app-quit-notification"; | 1216 const char kHostedAppQuitNotification[] = "enable-hosted-app-quit-notification"; |
| 1217 | 1217 |
| 1218 // Disable the toolkit-views App Info dialog for Mac. |
| 1219 const char kDisableAppInfoDialogMac[] = "disable-app-info-dialog-mac"; |
| 1220 |
| 1218 // Disables app shim creation for hosted apps on Mac. | 1221 // Disables app shim creation for hosted apps on Mac. |
| 1219 const char kDisableHostedAppShimCreation[] = "disable-hosted-app-shim-creation"; | 1222 const char kDisableHostedAppShimCreation[] = "disable-hosted-app-shim-creation"; |
| 1220 | 1223 |
| 1221 // Forcibly disables Lion-style on newer OSes, to allow developers to test the | 1224 // Forcibly disables Lion-style on newer OSes, to allow developers to test the |
| 1222 // older, SnowLeopard-style fullscreen. | 1225 // older, SnowLeopard-style fullscreen. |
| 1223 const char kDisableSystemFullscreenForTesting[] = | 1226 const char kDisableSystemFullscreenForTesting[] = |
| 1224 "disable-system-fullscreen-for-testing"; | 1227 "disable-system-fullscreen-for-testing"; |
| 1225 | 1228 |
| 1229 // Enable the toolkit-views App Info dialog for Mac. This is accessible from |
| 1230 // chrome://apps and chrome://extensions and is already enabled on non-mac. |
| 1231 const char kEnableAppInfoDialogMac[] = "enable-app-info-dialog-mac"; |
| 1232 |
| 1226 // Enables Translate experimental new UX which replaces the infobar. | 1233 // Enables Translate experimental new UX which replaces the infobar. |
| 1227 const char kEnableTranslateNewUX[] = "enable-translate-new-ux"; | 1234 const char kEnableTranslateNewUX[] = "enable-translate-new-ux"; |
| 1228 | 1235 |
| 1229 // This is how the metrics client ID is passed from the browser process to its | 1236 // This is how the metrics client ID is passed from the browser process to its |
| 1230 // children. With Crashpad, the metrics client ID is distinct from the crash | 1237 // children. With Crashpad, the metrics client ID is distinct from the crash |
| 1231 // client ID. | 1238 // client ID. |
| 1232 const char kMetricsClientID[] = "metrics-client-id"; | 1239 const char kMetricsClientID[] = "metrics-client-id"; |
| 1233 | 1240 |
| 1234 // A process type (switches::kProcessType) that relaunches the browser. See | 1241 // A process type (switches::kProcessType) that relaunches the browser. See |
| 1235 // chrome/browser/mac/relauncher.h. | 1242 // chrome/browser/mac/relauncher.h. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 | 1362 |
| 1356 // ----------------------------------------------------------------------------- | 1363 // ----------------------------------------------------------------------------- |
| 1357 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1364 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1358 // | 1365 // |
| 1359 // You were going to just dump your switches here, weren't you? Instead, please | 1366 // You were going to just dump your switches here, weren't you? Instead, please |
| 1360 // put them in alphabetical order above, or in order inside the appropriate | 1367 // put them in alphabetical order above, or in order inside the appropriate |
| 1361 // ifdef at the bottom. The order should match the header. | 1368 // ifdef at the bottom. The order should match the header. |
| 1362 // ----------------------------------------------------------------------------- | 1369 // ----------------------------------------------------------------------------- |
| 1363 | 1370 |
| 1364 } // namespace switches | 1371 } // namespace switches |
| OLD | NEW |