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

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

Issue 419093002: ui: Remove ResourceBundle::LoadCommonResources(). Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: InitParams changes Created 6 years, 4 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_android.cc ('k') | ui/base/resource/resource_bundle_ios.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle_auralinux.cc
diff --git a/ui/base/resource/resource_bundle_auralinux.cc b/ui/base/resource/resource_bundle_auralinux.cc
index 128fd6762d279d647ded69aa73bf69d1c769ac77..04c8d918728d0f1e9c95c7cdce358b86edff1471 100644
--- a/ui/base/resource/resource_bundle_auralinux.cc
+++ b/ui/base/resource/resource_bundle_auralinux.cc
@@ -4,44 +4,10 @@
#include "ui/base/resource/resource_bundle.h"
-#include "base/command_line.h"
#include "base/logging.h"
-#include "base/path_service.h"
-#include "ui/base/layout.h"
-#include "ui/base/resource/resource_handle.h"
-#include "ui/base/ui_base_paths.h"
-#include "ui/base/ui_base_switches.h"
-#include "ui/gfx/display.h"
-#include "ui/gfx/image/image.h"
-
-namespace {
-
-base::FilePath GetResourcesPakFilePath(const std::string& pak_name) {
- base::FilePath path;
- if (PathService::Get(base::DIR_MODULE, &path))
- return path.AppendASCII(pak_name.c_str());
-
- // Return just the name of the pack file.
- return base::FilePath(pak_name.c_str());
-}
-
-} // namespace
namespace ui {
-void ResourceBundle::LoadCommonResources() {
- // Always load the 1x data pack first as the 2x data pack contains both 1x and
- // 2x images. The 1x data pack only has 1x images, thus passes in an accurate
- // scale factor to gfx::ImageSkia::AddRepresentation.
- AddDataPackFromPath(GetResourcesPakFilePath(
- "chrome_100_percent.pak"), SCALE_FACTOR_100P);
-
- if (IsScaleFactorSupported(SCALE_FACTOR_200P)) {
- AddOptionalDataPackFromPath(GetResourcesPakFilePath(
- "chrome_200_percent.pak"), SCALE_FACTOR_200P);
- }
-}
-
gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl) {
// Flipped image is not used on ChromeOS.
DCHECK_EQ(rtl, RTL_DISABLED);
« no previous file with comments | « ui/base/resource/resource_bundle_android.cc ('k') | ui/base/resource/resource_bundle_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698