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

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

Issue 10103022: Revert 132517 - Metro/HiDPI: Move 1x icons into separate pak file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | « chrome/tools/build/win/release.rules ('k') | ui/base/resource/resource_bundle_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle_android.cc
===================================================================
--- ui/base/resource/resource_bundle_android.cc (revision 132528)
+++ ui/base/resource/resource_bundle_android.cc (working copy)
@@ -12,23 +12,14 @@
#include "base/path_service.h"
#include "base/stringprintf.h"
-namespace {
-
-FilePath GetResourcesPakFilePath(const std::string& pak_name) {
- FilePath path;
- PathService::Get(base::DIR_ANDROID_APP_DATA, &path);
- DCHECK(!path.empty());
- return path.AppendASCII("paks").AppendASCII(pak_name.c_str());
-}
-
-} // namespace
-
namespace ui {
void ResourceBundle::LoadCommonResources() {
- AddDataPack(GetResourcesPakFilePath("chrome.pak"));
- AddDataPack(GetResourcesPakFilePath("theme_resources_standard.pak"));
- AddDataPack(GetResourcesPakFilePath("ui_resources_standard.pak"));
+ FilePath data_path;
+ PathService::Get(base::DIR_ANDROID_APP_DATA, &data_path);
+ DCHECK(!data_path.empty());
+ data_path = data_path.AppendASCII("paks").AppendASCII("chrome.pak");
+ AddDataPack(data_path);
}
gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl) {
« no previous file with comments | « chrome/tools/build/win/release.rules ('k') | ui/base/resource/resource_bundle_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698