Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 3058006: Add API on host registration page. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: fixes Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/web_page_view.cc ('k') | chrome/browser/dom_ui/register_page_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698