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