OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
8 #include <signal.h> | 8 #include <signal.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 | 10 |
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 FilePath oobe_complete_path(kOobeCompleteFlagFilePath); | 835 FilePath oobe_complete_path(kOobeCompleteFlagFilePath); |
836 FILE* oobe_flag_file = file_util::OpenFile(oobe_complete_path, "w+b"); | 836 FILE* oobe_flag_file = file_util::OpenFile(oobe_complete_path, "w+b"); |
837 DCHECK(oobe_flag_file != NULL) << kOobeCompleteFlagFilePath; | 837 DCHECK(oobe_flag_file != NULL) << kOobeCompleteFlagFilePath; |
838 if (oobe_flag_file != NULL) | 838 if (oobe_flag_file != NULL) |
839 file_util::CloseFile(oobe_flag_file); | 839 file_util::CloseFile(oobe_flag_file); |
840 } | 840 } |
841 | 841 |
842 /////////////////////////////////////////////////////////////////////////////// | 842 /////////////////////////////////////////////////////////////////////////////// |
843 // WizardController, chromeos::ScreenObserver overrides: | 843 // WizardController, chromeos::ScreenObserver overrides: |
844 void WizardController::OnExit(ExitCodes exit_code) { | 844 void WizardController::OnExit(ExitCodes exit_code) { |
845 VLOG(1) << "Wizard screen exit code: " << exit_code; | 845 LOG(INFO) << "Wizard screen exit code: " << exit_code; |
846 switch (exit_code) { | 846 switch (exit_code) { |
847 case LOGIN_SIGN_IN_SELECTED: | 847 case LOGIN_SIGN_IN_SELECTED: |
848 OnLoginSignInSelected(); | 848 OnLoginSignInSelected(); |
849 break; | 849 break; |
850 case LOGIN_GUEST_SELECTED: | 850 case LOGIN_GUEST_SELECTED: |
851 OnLoginGuestUser(); | 851 OnLoginGuestUser(); |
852 break; | 852 break; |
853 case LOGIN_CREATE_ACCOUNT: | 853 case LOGIN_CREATE_ACCOUNT: |
854 OnLoginCreateAccount(); | 854 OnLoginCreateAccount(); |
855 break; | 855 break; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 // user has changed to during OOBE. | 1019 // user has changed to during OOBE. |
1020 if (!timezone_name.empty()) { | 1020 if (!timezone_name.empty()) { |
1021 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( | 1021 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( |
1022 icu::UnicodeString::fromUTF8(timezone_name)); | 1022 icu::UnicodeString::fromUTF8(timezone_name)); |
1023 chromeos::CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone); | 1023 chromeos::CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone); |
1024 } | 1024 } |
1025 } | 1025 } |
1026 } | 1026 } |
1027 | 1027 |
1028 } // namespace browser | 1028 } // namespace browser |
OLD | NEW |