Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: ui/base/resource/resource_bundle_gtk.cc

Issue 10686005: Add methods to add DataPack from open files (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/resource/resource_bundle_aurax11.cc ('k') | ui/base/resource/resource_bundle_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle_gtk.cc
diff --git a/ui/base/resource/resource_bundle_gtk.cc b/ui/base/resource/resource_bundle_gtk.cc
index d969bc0256fe0691b2c5d6b86b2c7060f175dce2..2b90f5b2e93dabf43bf7d974a4fd73a73a2f427e 100644
--- a/ui/base/resource/resource_bundle_gtk.cc
+++ b/ui/base/resource/resource_bundle_gtk.cc
@@ -65,12 +65,12 @@ FilePath GetResourcesPakFilePath(const std::string& pak_name) {
} // namespace
void ResourceBundle::LoadCommonResources() {
- AddDataPack(GetResourcesPakFilePath("chrome.pak"),
- SCALE_FACTOR_100P);
- AddDataPack(GetResourcesPakFilePath("theme_resources_standard.pak"),
- SCALE_FACTOR_100P);
- AddDataPack(GetResourcesPakFilePath("ui_resources_standard.pak"),
- SCALE_FACTOR_100P);
+ AddDataPackFromPath(GetResourcesPakFilePath("chrome.pak"),
+ SCALE_FACTOR_100P);
+ AddDataPackFromPath(GetResourcesPakFilePath("theme_resources_standard.pak"),
+ SCALE_FACTOR_100P);
+ AddDataPackFromPath(GetResourcesPakFilePath("ui_resources_standard.pak"),
+ SCALE_FACTOR_100P);
}
gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl) {
« no previous file with comments | « ui/base/resource/resource_bundle_aurax11.cc ('k') | ui/base/resource/resource_bundle_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698