summaryrefslogtreecommitdiffstats
path: root/remoting/base
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-17 01:55:56 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-17 01:55:56 +0000
commit4a74b43b846e193603fb8be995fa82cbd86d922f (patch)
tree935e209c0eaa94b3fc1fad1fe122c83b1e285b92 /remoting/base
parent80be1cece8e578e54d694f918b074ae6395f69fa (diff)
downloadchromium_src-4a74b43b846e193603fb8be995fa82cbd86d922f.zip
chromium_src-4a74b43b846e193603fb8be995fa82cbd86d922f.tar.gz
chromium_src-4a74b43b846e193603fb8be995fa82cbd86d922f.tar.bz2
Native remoting host configurer for linux.
This is initial version of the remoting host configurer for linux. It doesn't look pretty yet, but it works. Review URL: https://codereview.chromium.org/11260004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168352 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/base')
-rw-r--r--remoting/base/resources.cc4
-rw-r--r--remoting/base/resources.h6
2 files changed, 6 insertions, 4 deletions
diff --git a/remoting/base/resources.cc b/remoting/base/resources.cc
index 32e62c4..a43e328 100644
--- a/remoting/base/resources.cc
+++ b/remoting/base/resources.cc
@@ -17,14 +17,14 @@ const char kCommonResourcesFileName[] = "chrome_remote_desktop.pak";
} // namespace
// Loads chromoting resources.
-bool LoadResources(const std::string& locale) {
+bool LoadResources(const std::string& pref_locale) {
FilePath path;
if (!PathService::Get(base::DIR_MODULE, &path))
return false;
PathService::Override(ui::DIR_LOCALES,
path.AppendASCII(kLocaleResourcesDirName));
- ui::ResourceBundle::InitSharedInstanceLocaleOnly(locale, NULL);
+ ui::ResourceBundle::InitSharedInstanceLocaleOnly(pref_locale, NULL);
ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(
path.AppendASCII(kCommonResourcesFileName), ui::SCALE_FACTOR_100P);
diff --git a/remoting/base/resources.h b/remoting/base/resources.h
index a8fdfd6..b08eb8d 100644
--- a/remoting/base/resources.h
+++ b/remoting/base/resources.h
@@ -9,8 +9,10 @@
namespace remoting {
-// Loads chromoting resources. Returns false in case of a failure.
-bool LoadResources(const std::string& locale);
+// Loads chromoting resources. Returns false in case of a failure. |pref_locale|
+// is passed to l10n_util::GetApplicationLocale(), so the default system locale
+// is used if |pref_locale| is empty.
+bool LoadResources(const std::string& pref_locale);
} // namespace remoting