Index: ui/base/resource/resource_bundle.cc |
diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc |
index 13aaacf68daa1bdef390d6c9773c616e52e5d8da..9d54da80a39b635433f672704a52f44f45e4d7e4 100644 |
--- a/ui/base/resource/resource_bundle.cc |
+++ b/ui/base/resource/resource_bundle.cc |
@@ -89,9 +89,10 @@ bool ResourceBundle::LocaleDataPakExists(const std::string& locale) { |
return !GetLocaleFilePath(locale).empty(); |
} |
-void ResourceBundle::AddDataPack(const FilePath& path) { |
+void ResourceBundle::AddDataPack(const FilePath& path, float scale_factor) { |
scoped_ptr<DataPack> data_pack(new DataPack()); |
if (data_pack->Load(path)) { |
+ data_pack->set_scale_factor(scale_factor); |
data_packs_.push_back(data_pack.release()); |
} else { |
LOG(ERROR) << "Failed to load " << path.value() |