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

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

Issue 5939002: Error handling added (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync up Created 10 years 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
« no previous file with comments | « chrome/browser/chromeos/login/language_switch_menu.cc ('k') | 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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 // chromeos::LanguageSwitchMenu::SwitchLanguage here before 1000 // chromeos::LanguageSwitchMenu::SwitchLanguage here before
1001 // EmitLoginPromptReady. 1001 // EmitLoginPromptReady.
1002 const std::string current_locale = 1002 const std::string current_locale =
1003 g_browser_process->local_state()->GetString( 1003 g_browser_process->local_state()->GetString(
1004 prefs::kApplicationLocale); 1004 prefs::kApplicationLocale);
1005 VLOG(1) << "Current locale: " << current_locale; 1005 VLOG(1) << "Current locale: " << current_locale;
1006 if (current_locale.empty()) { 1006 if (current_locale.empty()) {
1007 locale = controller->GetCustomization()->initial_locale(); 1007 locale = controller->GetCustomization()->initial_locale();
1008 VLOG(1) << "Initial locale: " << locale; 1008 VLOG(1) << "Initial locale: " << locale;
1009 if (!locale.empty()) { 1009 if (!locale.empty()) {
1010 ResourceBundle::ReloadSharedInstance(locale); 1010 const std::string loaded_locale =
1011 ResourceBundle::ReloadSharedInstance(locale);
1012 CHECK(!loaded_locale.empty()) << "Locale could not be found for "
1013 << locale;
1011 } 1014 }
1012 } 1015 }
1013 } 1016 }
1014 1017
1015 controller->ShowBackground(screen_bounds); 1018 controller->ShowBackground(screen_bounds);
1016 controller->Init(first_screen_name, screen_bounds); 1019 controller->Init(first_screen_name, screen_bounds);
1017 controller->Show(); 1020 controller->Show();
1018 1021
1019 chromeos::LoginUtils::Get()->PrewarmAuthentication(); 1022 chromeos::LoginUtils::Get()->PrewarmAuthentication();
1020 if (chromeos::CrosLibrary::Get()->EnsureLoaded()) 1023 if (chromeos::CrosLibrary::Get()->EnsureLoaded())
(...skipping 11 matching lines...) Expand all
1032 // user has changed to during OOBE. 1035 // user has changed to during OOBE.
1033 if (!timezone_name.empty()) { 1036 if (!timezone_name.empty()) {
1034 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( 1037 icu::TimeZone* timezone = icu::TimeZone::createTimeZone(
1035 icu::UnicodeString::fromUTF8(timezone_name)); 1038 icu::UnicodeString::fromUTF8(timezone_name));
1036 chromeos::CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone); 1039 chromeos::CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone);
1037 } 1040 }
1038 } 1041 }
1039 } 1042 }
1040 1043
1041 } // namespace browser 1044 } // namespace browser
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/language_switch_menu.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698