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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 void WizardController::MarkOobeCompleted() { | 567 void WizardController::MarkOobeCompleted() { |
568 PrefService* prefs = g_browser_process->local_state(); | 568 PrefService* prefs = g_browser_process->local_state(); |
569 prefs->SetBoolean(kOobeComplete, true); | 569 prefs->SetBoolean(kOobeComplete, true); |
570 // Make sure that changes are reflected immediately. | 570 // Make sure that changes are reflected immediately. |
571 prefs->SavePersistentPrefs(); | 571 prefs->SavePersistentPrefs(); |
572 } | 572 } |
573 | 573 |
574 /////////////////////////////////////////////////////////////////////////////// | 574 /////////////////////////////////////////////////////////////////////////////// |
575 // WizardController, chromeos::ScreenObserver overrides: | 575 // WizardController, chromeos::ScreenObserver overrides: |
576 void WizardController::OnExit(ExitCodes exit_code) { | 576 void WizardController::OnExit(ExitCodes exit_code) { |
| 577 LOG(INFO) << "Wizard screen exit code: " << exit_code; |
577 switch (exit_code) { | 578 switch (exit_code) { |
578 case LOGIN_SIGN_IN_SELECTED: | 579 case LOGIN_SIGN_IN_SELECTED: |
579 OnLoginSignInSelected(); | 580 OnLoginSignInSelected(); |
580 break; | 581 break; |
581 case LOGIN_GUEST_SELECTED: | 582 case LOGIN_GUEST_SELECTED: |
582 OnLoginGuestUser(); | 583 OnLoginGuestUser(); |
583 break; | 584 break; |
584 case LOGIN_CREATE_ACCOUNT: | 585 case LOGIN_CREATE_ACCOUNT: |
585 OnLoginCreateAccount(); | 586 OnLoginCreateAccount(); |
586 break; | 587 break; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 if (!oobe_complete) | 720 if (!oobe_complete) |
720 controller->SetCustomization(customization.release()); | 721 controller->SetCustomization(customization.release()); |
721 controller->ShowBackground(screen_bounds); | 722 controller->ShowBackground(screen_bounds); |
722 controller->Init(first_screen_name, screen_bounds); | 723 controller->Init(first_screen_name, screen_bounds); |
723 controller->Show(); | 724 controller->Show(); |
724 if (chromeos::CrosLibrary::Get()->EnsureLoaded()) | 725 if (chromeos::CrosLibrary::Get()->EnsureLoaded()) |
725 chromeos::CrosLibrary::Get()->GetLoginLibrary()->EmitLoginPromptReady(); | 726 chromeos::CrosLibrary::Get()->GetLoginLibrary()->EmitLoginPromptReady(); |
726 } | 727 } |
727 | 728 |
728 } // namespace browser | 729 } // namespace browser |
OLD | NEW |