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 // Disables the menu on the NTP for accessing sessions from other devices. | 287 // Disables the menu on the NTP for accessing sessions from other devices. |
285 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; | 288 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; |
286 | 289 |
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) | 1349 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) |
1347 return true; | 1350 return true; |
1348 | 1351 |
1349 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) | 1352 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) |
1350 return false; | 1353 return false; |
1351 | 1354 |
1352 // Default. | 1355 // Default. |
1353 return false; | 1356 return false; |
1354 } | 1357 } |
1355 | 1358 |
| 1359 bool MojoUtilityServicesEnabled() { |
| 1360 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1361 kDisableMojoUtilityServices)) { |
| 1362 return false; |
| 1363 } |
| 1364 |
| 1365 return true; |
| 1366 } |
| 1367 |
1356 bool SettingsWindowEnabled() { | 1368 bool SettingsWindowEnabled() { |
1357 #if defined(OS_CHROMEOS) | 1369 #if defined(OS_CHROMEOS) |
1358 return !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1370 return !base::CommandLine::ForCurrentProcess()->HasSwitch( |
1359 ::switches::kDisableSettingsWindow); | 1371 ::switches::kDisableSettingsWindow); |
1360 #else | 1372 #else |
1361 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1373 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
1362 ::switches::kEnableSettingsWindow); | 1374 ::switches::kEnableSettingsWindow); |
1363 #endif | 1375 #endif |
1364 } | 1376 } |
1365 | 1377 |
1366 #if defined(OS_CHROMEOS) | 1378 #if defined(OS_CHROMEOS) |
1367 bool PowerOverlayEnabled() { | 1379 bool PowerOverlayEnabled() { |
1368 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1380 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
1369 ::switches::kEnablePowerOverlay); | 1381 ::switches::kEnablePowerOverlay); |
1370 } | 1382 } |
1371 #endif | 1383 #endif |
1372 | 1384 |
1373 // ----------------------------------------------------------------------------- | 1385 // ----------------------------------------------------------------------------- |
1374 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1386 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1375 // | 1387 // |
1376 // You were going to just dump your switches here, weren't you? Instead, please | 1388 // You were going to just dump your switches here, weren't you? Instead, please |
1377 // put them in alphabetical order above, or in order inside the appropriate | 1389 // put them in alphabetical order above, or in order inside the appropriate |
1378 // ifdef at the bottom. The order should match the header. | 1390 // ifdef at the bottom. The order should match the header. |
1379 // ----------------------------------------------------------------------------- | 1391 // ----------------------------------------------------------------------------- |
1380 | 1392 |
1381 } // namespace switches | 1393 } // namespace switches |
OLD | NEW |