diff options
Diffstat (limited to 'ui/base/resource/resource_bundle_linux.cc')
-rw-r--r-- | ui/base/resource/resource_bundle_linux.cc | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/ui/base/resource/resource_bundle_linux.cc b/ui/base/resource/resource_bundle_linux.cc index ec6678d..5c8d598 100644 --- a/ui/base/resource/resource_bundle_linux.cc +++ b/ui/base/resource/resource_bundle_linux.cc @@ -7,12 +7,23 @@ #include "base/path_service.h" #include "ui/base/ui_base_paths.h" +namespace { + +FilePath GetResourcesPakFilePath(const std::string& pak_name) { + FilePath path; + if (PathService::Get(base::DIR_MODULE, &path)) + return path.AppendASCII(pak_name.c_str()); + return FilePath(); +} + +} // namespace + namespace ui { void ResourceBundle::LoadCommonResources() { - FilePath path; - PathService::Get(ui::FILE_RESOURCES_PAK, &path); - AddDataPack(path); + AddDataPack(GetResourcesPakFilePath("chrome.pak")); + AddDataPack(GetResourcesPakFilePath("theme_resources_standard.pak")); + AddDataPack(GetResourcesPakFilePath("ui_resources_standard.pak")); } } // namespace ui |