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