summaryrefslogtreecommitdiffstats
path: root/ui/base/resource/resource_bundle_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/resource/resource_bundle_mac.mm')
-rw-r--r--ui/base/resource/resource_bundle_mac.mm12
1 files changed, 11 insertions, 1 deletions
diff --git a/ui/base/resource/resource_bundle_mac.mm b/ui/base/resource/resource_bundle_mac.mm
index 5ace3de..6e4002d 100644
--- a/ui/base/resource/resource_bundle_mac.mm
+++ b/ui/base/resource/resource_bundle_mac.mm
@@ -44,8 +44,18 @@ FilePath GetResourcesPakFilePath(NSString* name, NSString* mac_locale) {
void ResourceBundle::LoadCommonResources() {
AddDataPack(GetResourcesPakFilePath(@"chrome", nil));
- if (base::mac::IsOSLionOrLater())
+ AddDataPack(GetResourcesPakFilePath(@"theme_resources_standard", nil));
+ AddDataPack(GetResourcesPakFilePath(@"ui_resources_standard", nil));
+
+ // On Windows and ChromeOS we load either the 1x resource or the 2x resource.
+ // On Mac we load both and let the UI framework decide which one to use.
+#if defined(ENABLE_HIDPI)
+ if (base::mac::IsOSLionOrLater()) {
AddDataPack(GetResourcesPakFilePath(@"theme_resources_2x", nil));
+ AddDataPack(GetResourcesPakFilePath(@"theme_resources_standard_2x", nil));
+ AddDataPack(GetResourcesPakFilePath(@"ui_resources_standard_2x", nil));
+ }
+#endif
}
// static