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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 } | 521 } |
522 | 522 |
523 void WizardController::OnLoginCreateAccount() { | 523 void WizardController::OnLoginCreateAccount() { |
524 ShowAccountScreen(); | 524 ShowAccountScreen(); |
525 } | 525 } |
526 | 526 |
527 void WizardController::OnNetworkConnected() { | 527 void WizardController::OnNetworkConnected() { |
528 if (is_official_build_) { | 528 if (is_official_build_) { |
529 ShowEulaScreen(); | 529 ShowEulaScreen(); |
530 } else { | 530 } else { |
531 OnOOBECompleted(); | 531 ShowUpdateScreen(); |
| 532 GetUpdateScreen()->StartUpdate(); |
532 } | 533 } |
533 } | 534 } |
534 | 535 |
535 void WizardController::OnNetworkOffline() { | 536 void WizardController::OnNetworkOffline() { |
536 // TODO(dpolukhin): if(is_out_of_box_) we cannot work offline and | 537 // TODO(dpolukhin): if(is_out_of_box_) we cannot work offline and |
537 // should report some error message here and stay on the same screen. | 538 // should report some error message here and stay on the same screen. |
538 ShowLoginScreen(); | 539 ShowLoginScreen(); |
539 } | 540 } |
540 | 541 |
541 void WizardController::OnAccountCreateBack() { | 542 void WizardController::OnAccountCreateBack() { |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 // user has changed to during OOBE. | 873 // user has changed to during OOBE. |
873 if (!timezone_name.empty()) { | 874 if (!timezone_name.empty()) { |
874 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( | 875 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( |
875 icu::UnicodeString::fromUTF8(timezone_name)); | 876 icu::UnicodeString::fromUTF8(timezone_name)); |
876 chromeos::CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone); | 877 chromeos::CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone); |
877 } | 878 } |
878 } | 879 } |
879 } | 880 } |
880 | 881 |
881 } // namespace browser | 882 } // namespace browser |
OLD | NEW |