| 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 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1336 bool MdExtensionsEnabled() { | 1336 bool MdExtensionsEnabled() { |
| 1337 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1337 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1338 ::switches::kEnableMaterialDesignExtensions); | 1338 ::switches::kEnableMaterialDesignExtensions); |
| 1339 } | 1339 } |
| 1340 | 1340 |
| 1341 bool MdPolicyPageEnabled() { | 1341 bool MdPolicyPageEnabled() { |
| 1342 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1342 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1343 ::switches::kEnableMaterialDesignPolicyPage); | 1343 ::switches::kEnableMaterialDesignPolicyPage); |
| 1344 } | 1344 } |
| 1345 | 1345 |
| 1346 bool MediaRouterEnabled() { | |
| 1347 #if defined(ENABLE_MEDIA_ROUTER) | |
| 1348 | |
| 1349 #if defined(OS_ANDROID) | |
| 1350 return true; | |
| 1351 #else | |
| 1352 return base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 1353 ::switches::kEnableMediaRouter); | |
| 1354 #endif // defined(OS_ANDROID). | |
| 1355 | |
| 1356 #else | |
| 1357 return false; | |
| 1358 #endif // defined(ENABLE_MEDIA_ROUTER) | |
| 1359 } | |
| 1360 | |
| 1361 bool PdfMaterialUIEnabled() { | 1346 bool PdfMaterialUIEnabled() { |
| 1362 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) | 1347 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) |
| 1363 return true; | 1348 return true; |
| 1364 | 1349 |
| 1365 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) | 1350 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) |
| 1366 return false; | 1351 return false; |
| 1367 | 1352 |
| 1368 // Default. | 1353 // Default. |
| 1369 return true; | 1354 return true; |
| 1370 } | 1355 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1395 | 1380 |
| 1396 // ----------------------------------------------------------------------------- | 1381 // ----------------------------------------------------------------------------- |
| 1397 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1382 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1398 // | 1383 // |
| 1399 // You were going to just dump your switches here, weren't you? Instead, please | 1384 // You were going to just dump your switches here, weren't you? Instead, please |
| 1400 // put them in alphabetical order above, or in order inside the appropriate | 1385 // put them in alphabetical order above, or in order inside the appropriate |
| 1401 // ifdef at the bottom. The order should match the header. | 1386 // ifdef at the bottom. The order should match the header. |
| 1402 // ----------------------------------------------------------------------------- | 1387 // ----------------------------------------------------------------------------- |
| 1403 | 1388 |
| 1404 } // namespace switches | 1389 } // namespace switches |
| OLD | NEW |