OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/language_list.h" | 5 #include "chrome/browser/chromeos/login/language_list.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
8 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
9 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
12 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
13 | 15 |
14 namespace chromeos { | 16 namespace chromeos { |
15 | 17 |
16 LanguageList::LanguageList() { | 18 LanguageList::LanguageList() { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 native_names_[name_in_current_ui] = | 106 native_names_[name_in_current_ui] = |
105 LocaleData(name_native, locale_codes[i]); | 107 LocaleData(name_native, locale_codes[i]); |
106 } | 108 } |
107 | 109 |
108 // Sort using locale specific sorter. | 110 // Sort using locale specific sorter. |
109 l10n_util::SortStrings16(g_browser_process->GetApplicationLocale(), | 111 l10n_util::SortStrings16(g_browser_process->GetApplicationLocale(), |
110 &locale_names_); | 112 &locale_names_); |
111 } | 113 } |
112 | 114 |
113 } // namespace chromeos | 115 } // namespace chromeos |
OLD | NEW |