| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file | 267 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file |
| 268 // bugs if something isn't working properly in the presence of IPv6. This flag | 268 // bugs if something isn't working properly in the presence of IPv6. This flag |
| 269 // can be overidden by the "enable-ipv6" flag. | 269 // can be overidden by the "enable-ipv6" flag. |
| 270 const char kDisableIPv6[] = "disable-ipv6"; | 270 const char kDisableIPv6[] = "disable-ipv6"; |
| 271 | 271 |
| 272 // Disable the behavior that the second click on a launcher item (the click when | 272 // Disable the behavior that the second click on a launcher item (the click when |
| 273 // the item is already active) minimizes the item. | 273 // the item is already active) minimizes the item. |
| 274 const char kDisableMinimizeOnSecondLauncherItemClick[] = | 274 const char kDisableMinimizeOnSecondLauncherItemClick[] = |
| 275 "disable-minimize-on-second-launcher-item-click"; | 275 "disable-minimize-on-second-launcher-item-click"; |
| 276 | 276 |
| 277 // Disable using Mojo for utility process services. |
| 278 const char kDisableMojoUtilityServices[] = "disable-mojo-utility-services"; |
| 279 |
| 277 // Disables the new bookmark app system. | 280 // Disables the new bookmark app system. |
| 278 const char kDisableNewBookmarkApps[] = "disable-new-bookmark-apps"; | 281 const char kDisableNewBookmarkApps[] = "disable-new-bookmark-apps"; |
| 279 | 282 |
| 280 // Disables the new offline error page generated by NetErrorHelper for ChromeOS | 283 // Disables the new offline error page generated by NetErrorHelper for ChromeOS |
| 281 // and instead uses the old error page generated by OfflineResourceThrottle. | 284 // and instead uses the old error page generated by OfflineResourceThrottle. |
| 282 const char kDisableNewOfflineErrorPage[] = "disable-new-offline-error-page"; | 285 const char kDisableNewOfflineErrorPage[] = "disable-new-offline-error-page"; |
| 283 | 286 |
| 284 // Disable auto-reload of error pages if offline. | 287 // Disable auto-reload of error pages if offline. |
| 285 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; | 288 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; |
| 286 | 289 |
| (...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) | 1347 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) |
| 1345 return true; | 1348 return true; |
| 1346 | 1349 |
| 1347 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) | 1350 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) |
| 1348 return false; | 1351 return false; |
| 1349 | 1352 |
| 1350 // Default. | 1353 // Default. |
| 1351 return false; | 1354 return false; |
| 1352 } | 1355 } |
| 1353 | 1356 |
| 1357 bool MojoUtilityServicesEnabled() { |
| 1358 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1359 kDisableMojoUtilityServices)) { |
| 1360 return false; |
| 1361 } |
| 1362 |
| 1363 return true; |
| 1364 } |
| 1365 |
| 1354 bool SettingsWindowEnabled() { | 1366 bool SettingsWindowEnabled() { |
| 1355 #if defined(OS_CHROMEOS) | 1367 #if defined(OS_CHROMEOS) |
| 1356 return !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1368 return !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1357 ::switches::kDisableSettingsWindow); | 1369 ::switches::kDisableSettingsWindow); |
| 1358 #else | 1370 #else |
| 1359 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1371 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1360 ::switches::kEnableSettingsWindow); | 1372 ::switches::kEnableSettingsWindow); |
| 1361 #endif | 1373 #endif |
| 1362 } | 1374 } |
| 1363 | 1375 |
| 1364 #if defined(OS_CHROMEOS) | 1376 #if defined(OS_CHROMEOS) |
| 1365 bool PowerOverlayEnabled() { | 1377 bool PowerOverlayEnabled() { |
| 1366 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1378 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1367 ::switches::kEnablePowerOverlay); | 1379 ::switches::kEnablePowerOverlay); |
| 1368 } | 1380 } |
| 1369 #endif | 1381 #endif |
| 1370 | 1382 |
| 1371 // ----------------------------------------------------------------------------- | 1383 // ----------------------------------------------------------------------------- |
| 1372 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1384 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1373 // | 1385 // |
| 1374 // You were going to just dump your switches here, weren't you? Instead, please | 1386 // You were going to just dump your switches here, weren't you? Instead, please |
| 1375 // put them in alphabetical order above, or in order inside the appropriate | 1387 // put them in alphabetical order above, or in order inside the appropriate |
| 1376 // ifdef at the bottom. The order should match the header. | 1388 // ifdef at the bottom. The order should match the header. |
| 1377 // ----------------------------------------------------------------------------- | 1389 // ----------------------------------------------------------------------------- |
| 1378 | 1390 |
| 1379 } // namespace switches | 1391 } // namespace switches |
| OLD | NEW |