| 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/browser/chromeos/login/wizard_controller.h" | 5 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 6 | 6 |
| 7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 #include "chromeos/dbus/dbus_thread_manager.h" | 57 #include "chromeos/dbus/dbus_thread_manager.h" |
| 58 #include "chromeos/dbus/session_manager_client.h" | 58 #include "chromeos/dbus/session_manager_client.h" |
| 59 #include "chromeos/network/network_state_handler.h" | 59 #include "chromeos/network/network_state_handler.h" |
| 60 #include "chromeos/settings/cros_settings_names.h" | 60 #include "chromeos/settings/cros_settings_names.h" |
| 61 #include "content/public/browser/browser_thread.h" | 61 #include "content/public/browser/browser_thread.h" |
| 62 #include "ui/base/accelerators/accelerator.h" | 62 #include "ui/base/accelerators/accelerator.h" |
| 63 #include "ui/base/l10n/l10n_util.h" | 63 #include "ui/base/l10n/l10n_util.h" |
| 64 | 64 |
| 65 using content::BrowserThread; | 65 using content::BrowserThread; |
| 66 | 66 |
| 67 namespace { | |
| 68 | |
| 69 // A string pref with initial locale set in VPD or manifest. | |
| 70 const char kInitialLocale[] = "intl.initial_locale"; | |
| 71 | |
| 72 // A boolean pref of the OOBE complete flag (first OOBE part before login). | |
| 73 const char kOobeComplete[] = "OobeComplete"; | |
| 74 | |
| 75 // A boolean pref of the device registered flag (second part after first login). | |
| 76 const char kDeviceRegistered[] = "DeviceRegistered"; | |
| 77 | |
| 78 // Time in seconds that we wait for the device to reboot. | |
| 79 // If reboot didn't happen, ask user to reboot device manually. | 67 // If reboot didn't happen, ask user to reboot device manually. |
| 80 const int kWaitForRebootTimeSec = 3; | 68 const int kWaitForRebootTimeSec = 3; |
| 81 | 69 |
| 82 // Interval in ms which is used for smooth screen showing. | 70 // Interval in ms which is used for smooth screen showing. |
| 83 static int kShowDelayMs = 400; | 71 static int kShowDelayMs = 400; |
| 84 | 72 |
| 85 } // namespace | |
| 86 | |
| 87 namespace chromeos { | 73 namespace chromeos { |
| 88 | 74 |
| 89 const char WizardController::kNetworkScreenName[] = "network"; | 75 const char WizardController::kNetworkScreenName[] = "network"; |
| 90 const char WizardController::kLoginScreenName[] = "login"; | 76 const char WizardController::kLoginScreenName[] = "login"; |
| 91 const char WizardController::kUpdateScreenName[] = "update"; | 77 const char WizardController::kUpdateScreenName[] = "update"; |
| 92 const char WizardController::kUserImageScreenName[] = "image"; | 78 const char WizardController::kUserImageScreenName[] = "image"; |
| 93 const char WizardController::kEulaScreenName[] = "eula"; | 79 const char WizardController::kEulaScreenName[] = "eula"; |
| 94 const char WizardController::kEnrollmentScreenName[] = "enroll"; | 80 const char WizardController::kEnrollmentScreenName[] = "enroll"; |
| 95 const char WizardController::kResetScreenName[] = "reset"; | 81 const char WizardController::kResetScreenName[] = "reset"; |
| 96 const char WizardController::kKioskEnableScreenName[] = "kiosk-enable"; | 82 const char WizardController::kKioskEnableScreenName[] = "kiosk-enable"; |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 ShowErrorScreen(); | 854 ShowErrorScreen(); |
| 869 } | 855 } |
| 870 | 856 |
| 871 PrefService* WizardController::GetLocalState() { | 857 PrefService* WizardController::GetLocalState() { |
| 872 if (local_state_for_testing_) | 858 if (local_state_for_testing_) |
| 873 return local_state_for_testing_; | 859 return local_state_for_testing_; |
| 874 return g_browser_process->local_state(); | 860 return g_browser_process->local_state(); |
| 875 } | 861 } |
| 876 | 862 |
| 877 } // namespace chromeos | 863 } // namespace chromeos |
| OLD | NEW |