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 <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/audio/sounds.h" | 10 #include "ash/audio/sounds.h" |
| 11 #include "ash/common/shell_window_ids.h" |
11 #include "ash/desktop_background/desktop_background_controller.h" | 12 #include "ash/desktop_background/desktop_background_controller.h" |
12 #include "ash/desktop_background/user_wallpaper_delegate.h" | 13 #include "ash/desktop_background/user_wallpaper_delegate.h" |
13 #include "ash/shell.h" | 14 #include "ash/shell.h" |
14 #include "ash/shell_window_ids.h" | |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/strings/string_split.h" | 19 #include "base/strings/string_split.h" |
20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
21 #include "base/threading/thread_restrictions.h" | 21 #include "base/threading/thread_restrictions.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "base/trace_event/trace_event.h" | 23 #include "base/trace_event/trace_event.h" |
24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
(...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1383 | 1383 |
1384 locale_util::SwitchLanguageCallback callback( | 1384 locale_util::SwitchLanguageCallback callback( |
1385 base::Bind(&OnLanguageSwitchedCallback, base::Passed(std::move(data)))); | 1385 base::Bind(&OnLanguageSwitchedCallback, base::Passed(std::move(data)))); |
1386 | 1386 |
1387 // Load locale keyboards here. Hardware layout would be automatically enabled. | 1387 // Load locale keyboards here. Hardware layout would be automatically enabled. |
1388 locale_util::SwitchLanguage(locale, true, true /* login_layouts_only */, | 1388 locale_util::SwitchLanguage(locale, true, true /* login_layouts_only */, |
1389 callback, ProfileManager::GetActiveUserProfile()); | 1389 callback, ProfileManager::GetActiveUserProfile()); |
1390 } | 1390 } |
1391 | 1391 |
1392 } // namespace chromeos | 1392 } // namespace chromeos |
OLD | NEW |