| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/login_display_host_impl.h" | 5 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "ash/audio/sounds.h" | 9 #include "ash/audio/sounds.h" |
| 10 #include "ash/desktop_background/desktop_background_controller.h" | 10 #include "ash/desktop_background/desktop_background_controller.h" |
| (...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 } | 1083 } |
| 1084 | 1084 |
| 1085 void LoginDisplayHostImpl::OnLoginPromptVisible() { | 1085 void LoginDisplayHostImpl::OnLoginPromptVisible() { |
| 1086 if (!login_prompt_visible_time_.is_null()) | 1086 if (!login_prompt_visible_time_.is_null()) |
| 1087 return; | 1087 return; |
| 1088 login_prompt_visible_time_ = base::TimeTicks::Now(); | 1088 login_prompt_visible_time_ = base::TimeTicks::Now(); |
| 1089 TryToPlayStartupSound(); | 1089 TryToPlayStartupSound(); |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 void LoginDisplayHostImpl::StartTimeZoneResolve() { | 1092 void LoginDisplayHostImpl::StartTimeZoneResolve() { |
| 1093 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( | 1093 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1094 chromeos::switches::kEnableTimeZoneTrackingOption)) { | 1094 chromeos::switches::kDisableTimeZoneTrackingOption)) { |
| 1095 return; | 1095 return; |
| 1096 } | 1096 } |
| 1097 | 1097 |
| 1098 if (!g_browser_process->local_state()->GetBoolean( | 1098 if (!g_browser_process->local_state()->GetBoolean( |
| 1099 prefs::kResolveDeviceTimezoneByGeolocation)) { | 1099 prefs::kResolveDeviceTimezoneByGeolocation)) { |
| 1100 return; | 1100 return; |
| 1101 } | 1101 } |
| 1102 | 1102 |
| 1103 if (system::HasSystemTimezonePolicy()) | 1103 if (system::HasSystemTimezonePolicy()) |
| 1104 return; | 1104 return; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 | 1233 |
| 1234 locale_util::SwitchLanguageCallback callback( | 1234 locale_util::SwitchLanguageCallback callback( |
| 1235 base::Bind(&OnLanguageSwitchedCallback, base::Passed(data.Pass()))); | 1235 base::Bind(&OnLanguageSwitchedCallback, base::Passed(data.Pass()))); |
| 1236 | 1236 |
| 1237 // Load locale keyboards here. Hardware layout would be automatically enabled. | 1237 // Load locale keyboards here. Hardware layout would be automatically enabled. |
| 1238 locale_util::SwitchLanguage( | 1238 locale_util::SwitchLanguage( |
| 1239 locale, true, true /* login_layouts_only */, callback); | 1239 locale, true, true /* login_layouts_only */, callback); |
| 1240 } | 1240 } |
| 1241 | 1241 |
| 1242 } // namespace chromeos | 1242 } // namespace chromeos |
| OLD | NEW |