| 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 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1383 } | 1383 } |
| 1384 | 1384 |
| 1385 bool PdfMaterialUIEnabled() { | 1385 bool PdfMaterialUIEnabled() { |
| 1386 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) | 1386 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) |
| 1387 return true; | 1387 return true; |
| 1388 | 1388 |
| 1389 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) | 1389 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) |
| 1390 return false; | 1390 return false; |
| 1391 | 1391 |
| 1392 // Default. | 1392 // Default. |
| 1393 return false; | 1393 return true; |
| 1394 } | 1394 } |
| 1395 | 1395 |
| 1396 bool SettingsWindowEnabled() { | 1396 bool SettingsWindowEnabled() { |
| 1397 #if defined(OS_CHROMEOS) | 1397 #if defined(OS_CHROMEOS) |
| 1398 return !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1398 return !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1399 ::switches::kDisableSettingsWindow); | 1399 ::switches::kDisableSettingsWindow); |
| 1400 #else | 1400 #else |
| 1401 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1401 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1402 ::switches::kEnableSettingsWindow); | 1402 ::switches::kEnableSettingsWindow); |
| 1403 #endif | 1403 #endif |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1419 | 1419 |
| 1420 // ----------------------------------------------------------------------------- | 1420 // ----------------------------------------------------------------------------- |
| 1421 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1421 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1422 // | 1422 // |
| 1423 // You were going to just dump your switches here, weren't you? Instead, please | 1423 // You were going to just dump your switches here, weren't you? Instead, please |
| 1424 // put them in alphabetical order above, or in order inside the appropriate | 1424 // put them in alphabetical order above, or in order inside the appropriate |
| 1425 // ifdef at the bottom. The order should match the header. | 1425 // ifdef at the bottom. The order should match the header. |
| 1426 // ----------------------------------------------------------------------------- | 1426 // ----------------------------------------------------------------------------- |
| 1427 | 1427 |
| 1428 } // namespace switches | 1428 } // namespace switches |
| OLD | NEW |