| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/win/i18n.h" | 5 #include "base/win/i18n.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
| 10 | 11 |
| 11 namespace { | 12 namespace { |
| 12 | 13 |
| 13 // Keep this enum in sync with kLanguageFunctionNames. | 14 // Keep this enum in sync with kLanguageFunctionNames. |
| 14 enum LanguageFunction { | 15 enum LanguageFunction { |
| 15 SYSTEM_LANGUAGES, | 16 SYSTEM_LANGUAGES, |
| 16 USER_LANGUAGES, | 17 USER_LANGUAGES, |
| 17 PROCESS_LANGUAGES, | 18 PROCESS_LANGUAGES, |
| 18 THREAD_LANGUAGES, | 19 THREAD_LANGUAGES, |
| 19 NUM_FUNCTIONS | 20 NUM_FUNCTIONS |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 bool GetThreadPreferredUILanguageList(std::vector<std::wstring>* languages) { | 162 bool GetThreadPreferredUILanguageList(std::vector<std::wstring>* languages) { |
| 162 DCHECK(languages); | 163 DCHECK(languages); |
| 163 return GetPreferredUILanguageList( | 164 return GetPreferredUILanguageList( |
| 164 THREAD_LANGUAGES, MUI_MERGE_SYSTEM_FALLBACK | MUI_MERGE_USER_FALLBACK, | 165 THREAD_LANGUAGES, MUI_MERGE_SYSTEM_FALLBACK | MUI_MERGE_USER_FALLBACK, |
| 165 languages); | 166 languages); |
| 166 } | 167 } |
| 167 | 168 |
| 168 } // namespace i18n | 169 } // namespace i18n |
| 169 } // namespace win | 170 } // namespace win |
| 170 } // namespace base | 171 } // namespace base |
| OLD | NEW |