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

Side by Side Diff: chrome/browser/chromeos/login/screens/network_screen.cc

Issue 1055863002: ChromeOS: switch UI language before apps are loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed CREATE_MODE_SYNCHRONOUS mode. Created 5 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/screens/network_screen.h" 5 #include "chrome/browser/chromeos/login/screens/network_screen.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 void NetworkScreen::DefaultNetworkChanged(const NetworkState* network) { 167 void NetworkScreen::DefaultNetworkChanged(const NetworkState* network) {
168 UpdateStatus(); 168 UpdateStatus();
169 } 169 }
170 170
171 //////////////////////////////////////////////////////////////////////////////// 171 ////////////////////////////////////////////////////////////////////////////////
172 // NetworkScreen, InputMethodManager::Observer implementation: 172 // NetworkScreen, InputMethodManager::Observer implementation:
173 173
174 void NetworkScreen::InputMethodChanged( 174 void NetworkScreen::InputMethodChanged(
175 input_method::InputMethodManager* manager, 175 input_method::InputMethodManager* manager,
176 Profile* /* proflie */,
176 bool /* show_message */) { 177 bool /* show_message */) {
177 GetContextEditor().SetString( 178 GetContextEditor().SetString(
178 kContextKeyInputMethod, 179 kContextKeyInputMethod,
179 manager->GetActiveIMEState()->GetCurrentInputMethod().id()); 180 manager->GetActiveIMEState()->GetCurrentInputMethod().id());
180 } 181 }
181 182
182 //////////////////////////////////////////////////////////////////////////////// 183 ////////////////////////////////////////////////////////////////////////////////
183 // NetworkScreen, setters and getters for input method and timezone. 184 // NetworkScreen, setters and getters for input method and timezone.
184 185
185 void NetworkScreen::SetApplicationLocale(const std::string& locale) { 186 void NetworkScreen::SetApplicationLocale(const std::string& locale) {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 FOR_EACH_OBSERVER(Observer, observers_, OnLanguageListReloaded()); 388 FOR_EACH_OBSERVER(Observer, observers_, OnLanguageListReloaded());
388 } 389 }
389 390
390 void NetworkScreen::OnSystemTimezoneChanged() { 391 void NetworkScreen::OnSystemTimezoneChanged() {
391 std::string current_timezone_id; 392 std::string current_timezone_id;
392 CrosSettings::Get()->GetString(kSystemTimezone, &current_timezone_id); 393 CrosSettings::Get()->GetString(kSystemTimezone, &current_timezone_id);
393 GetContextEditor().SetString(kContextKeyTimezone, current_timezone_id); 394 GetContextEditor().SetString(kContextKeyTimezone, current_timezone_id);
394 } 395 }
395 396
396 } // namespace chromeos 397 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698