Commit ae2568aa authored by Zeno Albisser's avatar Zeno Albisser
Browse files

[Mac] Buildfix: reintroduce ResourceBundle::GetLocaleFilePath.


As this function is excluded using a !defined(OS_MACOSX) in
resource_bundle.cc, we have to add a replacement for it in
resource_bundle_qt.cpp using the inverted logic.

Change-Id: I9b19977c61113280d2af75ba51a5466ecfc0e033
Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
Showing with 9 additions and 0 deletions
......@@ -144,6 +144,15 @@ void ResourceBundle::LoadCommonResources()
AddDataPack(data_pack.release());
}
// As GetLocaleFilePath is excluded for Mac in resource_bundle.cc,
// we have to add a replacement for it using the inverted logic.
#if defined(OS_MACOSX)
base::FilePath ResourceBundle::GetLocaleFilePath(const std::string& /*app_locale*/, bool /*test_file_exists*/)
{
return base::FilePath();
}
#endif
gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl)
{
LOG(WARNING) << "Unable to load image with id " << resource_id;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment