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 "chromeos/chromeos_switches.h" | 5 #include "chromeos/chromeos_switches.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 | 412 |
413 // Indicates that a guest session has been started before OOBE completion. | 413 // Indicates that a guest session has been started before OOBE completion. |
414 const char kOobeGuestSession[] = "oobe-guest-session"; | 414 const char kOobeGuestSession[] = "oobe-guest-session"; |
415 | 415 |
416 // Skips all other OOBE pages after user login. | 416 // Skips all other OOBE pages after user login. |
417 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin"; | 417 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin"; |
418 | 418 |
419 // Interval at which we check for total time on OOBE. | 419 // Interval at which we check for total time on OOBE. |
420 const char kOobeTimerInterval[] = "oobe-timer-interval"; | 420 const char kOobeTimerInterval[] = "oobe-timer-interval"; |
421 | 421 |
| 422 // If true, the md login and lock screens will be shown. |
| 423 const char kShowMdLogin[] = "show-md-login"; |
| 424 |
422 // Specifies power stub behavior: | 425 // Specifies power stub behavior: |
423 // 'cycle=2' - Cycles power states every 2 seconds. | 426 // 'cycle=2' - Cycles power states every 2 seconds. |
424 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details. | 427 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details. |
425 const char kPowerStub[] = "power-stub"; | 428 const char kPowerStub[] = "power-stub"; |
426 | 429 |
427 // Overrides network stub behavior. By default, ethernet, wifi and vpn are | 430 // Overrides network stub behavior. By default, ethernet, wifi and vpn are |
428 // enabled, and transitions occur instantaneously. Multiple options can be | 431 // enabled, and transitions occur instantaneously. Multiple options can be |
429 // comma separated (no spaces). Note: all options are in the format 'foo=x'. | 432 // comma separated (no spaces). Note: all options are in the format 'foo=x'. |
430 // Values are case sensitive and based on Shill names in service_constants.h. | 433 // Values are case sensitive and based on Shill names in service_constants.h. |
431 // See FakeShillManagerClient::SetInitialNetworkState for implementation. | 434 // See FakeShillManagerClient::SetInitialNetworkState for implementation. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == | 528 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == |
526 kTestCrosGaiaIdMigrationStarted; | 529 kTestCrosGaiaIdMigrationStarted; |
527 } | 530 } |
528 | 531 |
529 bool IsCellularFirstDevice() { | 532 bool IsCellularFirstDevice() { |
530 return base::CommandLine::ForCurrentProcess()->HasSwitch(kCellularFirst); | 533 return base::CommandLine::ForCurrentProcess()->HasSwitch(kCellularFirst); |
531 } | 534 } |
532 | 535 |
533 } // namespace switches | 536 } // namespace switches |
534 } // namespace chromeos | 537 } // namespace chromeos |
OLD | NEW |