OLD | NEW |
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 Loading... |
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 Loading... |
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, ¤t_timezone_id); | 393 CrosSettings::Get()->GetString(kSystemTimezone, ¤t_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 |
OLD | NEW |