OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_frame/simple_resource_loader.h" | 5 #include "chrome_frame/simple_resource_loader.h" |
6 | 6 |
7 #include <atlbase.h> | 7 #include <atlbase.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/base_paths.h" | 11 #include "base/base_paths.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/i18n/rtl.h" | 14 #include "base/i18n/rtl.h" |
15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "base/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "base/win/i18n.h" | 19 #include "base/win/i18n.h" |
20 #include "base/win/windows_version.h" | 20 #include "base/win/windows_version.h" |
21 #include "chrome_frame/policy_settings.h" | 21 #include "chrome_frame/policy_settings.h" |
22 #include "ui/base/resource/data_pack.h" | 22 #include "ui/base/resource/data_pack.h" |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 const wchar_t kLocalesDirName[] = L"Locales"; | 26 const wchar_t kLocalesDirName[] = L"Locales"; |
27 | 27 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 262 |
263 // static | 263 // static |
264 std::wstring SimpleResourceLoader::Get(int message_id) { | 264 std::wstring SimpleResourceLoader::Get(int message_id) { |
265 SimpleResourceLoader* loader = SimpleResourceLoader::GetInstance(); | 265 SimpleResourceLoader* loader = SimpleResourceLoader::GetInstance(); |
266 return loader->GetLocalizedResource(message_id); | 266 return loader->GetLocalizedResource(message_id); |
267 } | 267 } |
268 | 268 |
269 HMODULE SimpleResourceLoader::GetResourceModuleHandle() { | 269 HMODULE SimpleResourceLoader::GetResourceModuleHandle() { |
270 return locale_dll_handle_; | 270 return locale_dll_handle_; |
271 } | 271 } |
OLD | NEW |