| 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 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1369 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) | 1369 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) |
| 1370 return true; | 1370 return true; |
| 1371 | 1371 |
| 1372 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) | 1372 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) |
| 1373 return false; | 1373 return false; |
| 1374 | 1374 |
| 1375 // Default. | 1375 // Default. |
| 1376 return false; | 1376 return false; |
| 1377 } | 1377 } |
| 1378 | 1378 |
| 1379 |
| 1380 bool MdSettingsEnabled() { |
| 1381 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1382 ::switches::kEnableMaterialDesignSettings); |
| 1383 } |
| 1384 |
| 1379 bool SettingsWindowEnabled() { | 1385 bool SettingsWindowEnabled() { |
| 1380 #if defined(OS_CHROMEOS) | 1386 #if defined(OS_CHROMEOS) |
| 1381 return !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1387 return !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1382 ::switches::kDisableSettingsWindow); | 1388 ::switches::kDisableSettingsWindow); |
| 1383 #else | 1389 #else |
| 1384 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1390 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1385 ::switches::kEnableSettingsWindow); | 1391 ::switches::kEnableSettingsWindow); |
| 1386 #endif | 1392 #endif |
| 1387 } | 1393 } |
| 1388 | 1394 |
| 1389 #if defined(OS_CHROMEOS) | 1395 #if defined(OS_CHROMEOS) |
| 1390 bool PowerOverlayEnabled() { | 1396 bool PowerOverlayEnabled() { |
| 1391 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1397 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1392 ::switches::kEnablePowerOverlay); | 1398 ::switches::kEnablePowerOverlay); |
| 1393 } | 1399 } |
| 1394 #endif | 1400 #endif |
| 1395 | 1401 |
| 1396 // ----------------------------------------------------------------------------- | 1402 // ----------------------------------------------------------------------------- |
| 1397 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1403 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1398 // | 1404 // |
| 1399 // You were going to just dump your switches here, weren't you? Instead, please | 1405 // 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 | 1406 // put them in alphabetical order above, or in order inside the appropriate |
| 1401 // ifdef at the bottom. The order should match the header. | 1407 // ifdef at the bottom. The order should match the header. |
| 1402 // ----------------------------------------------------------------------------- | 1408 // ----------------------------------------------------------------------------- |
| 1403 | 1409 |
| 1404 } // namespace switches | 1410 } // namespace switches |
| OLD | NEW |