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

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

Issue 3192014: Show update screen for non-official build (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698