summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/resource_bundle_linux.cc9
-rw-r--r--app/resource_bundle_mac.mm9
2 files changed, 14 insertions, 4 deletions
diff --git a/app/resource_bundle_linux.cc b/app/resource_bundle_linux.cc
index 929a77f..5c5cb50 100644
--- a/app/resource_bundle_linux.cc
+++ b/app/resource_bundle_linux.cc
@@ -132,8 +132,13 @@ RefCountedStaticMemory* ResourceBundle::LoadResourceBytes(
base::StringPiece ResourceBundle::GetRawDataResource(int resource_id) {
DCHECK(resources_data_);
base::StringPiece data;
- if (!resources_data_->Get(resource_id, &data))
- return base::StringPiece();
+
+ if (!resources_data_->Get(resource_id, &data)) {
+ if (!locale_resources_data_->Get(resource_id, &data)) {
+ return base::StringPiece();
+ }
+ }
+
return data;
}
diff --git a/app/resource_bundle_mac.mm b/app/resource_bundle_mac.mm
index b306602..92b9120 100644
--- a/app/resource_bundle_mac.mm
+++ b/app/resource_bundle_mac.mm
@@ -86,8 +86,13 @@ RefCountedStaticMemory* ResourceBundle::LoadResourceBytes(
base::StringPiece ResourceBundle::GetRawDataResource(int resource_id) {
DCHECK(resources_data_);
base::StringPiece data;
- if (!resources_data_->Get(resource_id, &data))
- return base::StringPiece();
+
+ if (!resources_data_->Get(resource_id, &data)) {
+ if (!locale_resources_data_->Get(resource_id, &data)) {
+ return base::StringPiece();
+ }
+ }
+
return data;
}