| 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 "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "base/string_split.h" | |
| 9 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "base/strings/string_split.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 LanguageList::LanguageList() { | 16 LanguageList::LanguageList() { |
| 17 // Enumerate the languages we know about. | 17 // Enumerate the languages we know about. |
| 18 const std::vector<std::string>& locale_codes = | 18 const std::vector<std::string>& locale_codes = |
| 19 l10n_util::GetAvailableLocales(); | 19 l10n_util::GetAvailableLocales(); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 native_names_[name_in_current_ui] = | 105 native_names_[name_in_current_ui] = |
| 106 LocaleData(name_native, locale_codes[i]); | 106 LocaleData(name_native, locale_codes[i]); |
| 107 } | 107 } |
| 108 | 108 |
| 109 // Sort using locale specific sorter. | 109 // Sort using locale specific sorter. |
| 110 l10n_util::SortStrings16(g_browser_process->GetApplicationLocale(), | 110 l10n_util::SortStrings16(g_browser_process->GetApplicationLocale(), |
| 111 &locale_names_); | 111 &locale_names_); |
| 112 } | 112 } |
| 113 | 113 |
| 114 } // namespace chromeos | 114 } // namespace chromeos |
| OLD | NEW |