summaryrefslogtreecommitdiffstats
path: root/remoting/base/resources.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/base/resources.cc')
-rw-r--r--remoting/base/resources.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/remoting/base/resources.cc b/remoting/base/resources.cc
index cd7e486..32e62c4 100644
--- a/remoting/base/resources.cc
+++ b/remoting/base/resources.cc
@@ -11,16 +11,24 @@
namespace remoting {
+namespace {
+const char kLocaleResourcesDirName[] = "remoting_locales";
+const char kCommonResourcesFileName[] = "chrome_remote_desktop.pak";
+} // namespace
+
// Loads chromoting resources.
bool LoadResources(const std::string& locale) {
FilePath path;
if (!PathService::Get(base::DIR_MODULE, &path))
return false;
- path = path.Append(FILE_PATH_LITERAL("remoting_locales"));
- PathService::Override(ui::DIR_LOCALES, path);
+ PathService::Override(ui::DIR_LOCALES,
+ path.AppendASCII(kLocaleResourcesDirName));
ui::ResourceBundle::InitSharedInstanceLocaleOnly(locale, NULL);
+ ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(
+ path.AppendASCII(kCommonResourcesFileName), ui::SCALE_FACTOR_100P);
+
return true;
}