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

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

Issue 8414021: [cros] Remove few account screen mentions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <sys/types.h> 8 #include <sys/types.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 InitiateOOBEUpdate(); 356 InitiateOOBEUpdate();
357 } 357 }
358 } 358 }
359 359
360 void WizardController::OnNetworkOffline() { 360 void WizardController::OnNetworkOffline() {
361 // TODO(dpolukhin): if(is_out_of_box_) we cannot work offline and 361 // TODO(dpolukhin): if(is_out_of_box_) we cannot work offline and
362 // should report some error message here and stay on the same screen. 362 // should report some error message here and stay on the same screen.
363 ShowLoginScreen(); 363 ShowLoginScreen();
364 } 364 }
365 365
366 void WizardController::OnAccountCreateBack() {
367 ShowLoginScreen();
368 }
369
370 void WizardController::OnAccountCreated() {
371 ShowLoginScreen();
372 // TODO(dpolukhin): clear password memory for real. Now it is not
373 // a problem because we can't extract password from the form.
374 password_.clear();
375 }
376
377 void WizardController::OnConnectionFailed() { 366 void WizardController::OnConnectionFailed() {
378 // TODO(dpolukhin): show error message after login screen is displayed. 367 // TODO(dpolukhin): show error message after login screen is displayed.
379 ShowLoginScreen(); 368 ShowLoginScreen();
380 } 369 }
381 370
382 void WizardController::OnUpdateCompleted() { 371 void WizardController::OnUpdateCompleted() {
383 OnOOBECompleted(); 372 OnOOBECompleted();
384 } 373 }
385 374
386 void WizardController::OnEulaAccepted() { 375 void WizardController::OnEulaAccepted() {
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 // WizardController, chromeos::ScreenObserver overrides: 632 // WizardController, chromeos::ScreenObserver overrides:
644 void WizardController::OnExit(ExitCodes exit_code) { 633 void WizardController::OnExit(ExitCodes exit_code) {
645 LOG(INFO) << "Wizard screen exit code: " << exit_code; 634 LOG(INFO) << "Wizard screen exit code: " << exit_code;
646 switch (exit_code) { 635 switch (exit_code) {
647 case NETWORK_CONNECTED: 636 case NETWORK_CONNECTED:
648 OnNetworkConnected(); 637 OnNetworkConnected();
649 break; 638 break;
650 case NETWORK_OFFLINE: 639 case NETWORK_OFFLINE:
651 OnNetworkOffline(); 640 OnNetworkOffline();
652 break; 641 break;
653 case ACCOUNT_CREATE_BACK:
654 OnAccountCreateBack();
655 break;
656 case ACCOUNT_CREATED:
657 OnAccountCreated();
658 break;
659 case CONNECTION_FAILED: 642 case CONNECTION_FAILED:
660 OnConnectionFailed(); 643 OnConnectionFailed();
661 break; 644 break;
662 case UPDATE_INSTALLED: 645 case UPDATE_INSTALLED:
663 case UPDATE_NOUPDATE: 646 case UPDATE_NOUPDATE:
664 OnUpdateCompleted(); 647 OnUpdateCompleted();
665 break; 648 break;
666 case UPDATE_ERROR_CHECKING_FOR_UPDATE: 649 case UPDATE_ERROR_CHECKING_FOR_UPDATE:
667 OnUpdateErrorCheckingForUpdate(); 650 OnUpdateErrorCheckingForUpdate();
668 break; 651 break;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 691
709 bool WizardController::usage_statistics_reporting() const { 692 bool WizardController::usage_statistics_reporting() const {
710 return usage_statistics_reporting_; 693 return usage_statistics_reporting_;
711 } 694 }
712 695
713 void WizardController::SetZeroDelays() { 696 void WizardController::SetZeroDelays() {
714 kShowDelayMs = 0; 697 kShowDelayMs = 0;
715 } 698 }
716 699
717 } // namespace chromeos 700 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.h ('k') | chrome/browser/chromeos/login/wizard_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698