| 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 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1352 bool MdExtensionsEnabled() { | 1352 bool MdExtensionsEnabled() { |
| 1353 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1353 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1354 ::switches::kEnableMaterialDesignExtensions); | 1354 ::switches::kEnableMaterialDesignExtensions); |
| 1355 } | 1355 } |
| 1356 | 1356 |
| 1357 bool MdPolicyPageEnabled() { | 1357 bool MdPolicyPageEnabled() { |
| 1358 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1358 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1359 ::switches::kEnableMaterialDesignPolicyPage); | 1359 ::switches::kEnableMaterialDesignPolicyPage); |
| 1360 } | 1360 } |
| 1361 | 1361 |
| 1362 bool MediaRouterEnabled() { | |
| 1363 #if defined(ENABLE_MEDIA_ROUTER) | |
| 1364 | |
| 1365 #if defined(OS_ANDROID) | |
| 1366 return true; | |
| 1367 #else | |
| 1368 return base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 1369 ::switches::kEnableMediaRouter); | |
| 1370 #endif // defined(OS_ANDROID). | |
| 1371 | |
| 1372 #else | |
| 1373 return false; | |
| 1374 #endif // defined(ENABLE_MEDIA_ROUTER) | |
| 1375 } | |
| 1376 | |
| 1377 bool PdfMaterialUIEnabled() { | 1362 bool PdfMaterialUIEnabled() { |
| 1378 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) | 1363 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) |
| 1379 return true; | 1364 return true; |
| 1380 | 1365 |
| 1381 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) | 1366 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) |
| 1382 return false; | 1367 return false; |
| 1383 | 1368 |
| 1384 // Default. | 1369 // Default. |
| 1385 return true; | 1370 return true; |
| 1386 } | 1371 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1411 | 1396 |
| 1412 // ----------------------------------------------------------------------------- | 1397 // ----------------------------------------------------------------------------- |
| 1413 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1398 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1414 // | 1399 // |
| 1415 // You were going to just dump your switches here, weren't you? Instead, please | 1400 // You were going to just dump your switches here, weren't you? Instead, please |
| 1416 // put them in alphabetical order above, or in order inside the appropriate | 1401 // put them in alphabetical order above, or in order inside the appropriate |
| 1417 // ifdef at the bottom. The order should match the header. | 1402 // ifdef at the bottom. The order should match the header. |
| 1418 // ----------------------------------------------------------------------------- | 1403 // ----------------------------------------------------------------------------- |
| 1419 | 1404 |
| 1420 } // namespace switches | 1405 } // namespace switches |
| OLD | NEW |