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

Unified Diff: remoting/base/resources.cc

Issue 20985002: Localized Chromoting Host on Mac and Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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 | « remoting/base/resources.h ('k') | remoting/base/resources_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/resources.cc
diff --git a/remoting/base/resources.cc b/remoting/base/resources.cc
deleted file mode 100644
index 933be87dcf0bcd56e0d15b7b5f0467ce32545e9c..0000000000000000000000000000000000000000
--- a/remoting/base/resources.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "remoting/base/resources.h"
-
-#include "base/files/file_path.h"
-#include "base/path_service.h"
-#include "ui/base/resource/resource_bundle.h"
-#include "ui/base/ui_base_paths.h"
-
-namespace remoting {
-
-namespace {
-const char kLocaleResourcesDirName[] = "remoting_locales";
-const char kCommonResourcesFileName[] = "chrome_remote_desktop.pak";
-} // namespace
-
-// Loads chromoting resources.
-bool LoadResources(const std::string& pref_locale) {
- base::FilePath path;
- if (!PathService::Get(base::DIR_MODULE, &path))
- return false;
-
- PathService::Override(ui::DIR_LOCALES,
- path.AppendASCII(kLocaleResourcesDirName));
- ui::ResourceBundle::InitSharedInstanceLocaleOnly(pref_locale, NULL);
-
- ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(
- path.AppendASCII(kCommonResourcesFileName), ui::SCALE_FACTOR_100P);
-
- return true;
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/base/resources.h ('k') | remoting/base/resources_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698