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

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

Issue 10837142: Remove --load-2x-resources flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. Created 8 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.cc ('k') | ui/base/ui_base_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle_aurax11.cc
diff --git a/ui/base/resource/resource_bundle_aurax11.cc b/ui/base/resource/resource_bundle_aurax11.cc
index 52869720166bd1ede108755c4fbf0a6c00f7ebc1..7ff4a122b918cb312cdc0247517b4203ffba14ee 100644
--- a/ui/base/resource/resource_bundle_aurax11.cc
+++ b/ui/base/resource/resource_bundle_aurax11.cc
@@ -25,11 +25,6 @@ FilePath GetResourcesPakFilePath(const std::string& pak_name) {
return FilePath(pak_name.c_str());
}
-bool ShouldLoad2xResources() {
- return gfx::Display::GetForcedDeviceScaleFactor() > 1.0f ||
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kLoad2xResources);
-}
-
} // namespace
namespace ui {
@@ -47,23 +42,25 @@ void ResourceBundle::LoadCommonResources() {
AddDataPackFromPath(GetResourcesPakFilePath(
"chrome_touch_100_percent.pak"),
SCALE_FACTOR_100P);
- if (ShouldLoad2xResources()) {
- // 2x touch
- AddDataPackFromPath(GetResourcesPakFilePath(
- "chrome_touch_200_percent.pak"),
- SCALE_FACTOR_200P);
- }
+
+ // 2x touch
+ // TODO(flackr): Don't log an error message if these are not found as this
+ // is an expected case in ChromeOS.
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "chrome_touch_200_percent.pak"),
+ SCALE_FACTOR_200P);
} else {
// 1x non touch
AddDataPackFromPath(GetResourcesPakFilePath(
"chrome_100_percent.pak"),
SCALE_FACTOR_100P);
- if (ShouldLoad2xResources()) {
- // 2x non touch
- AddDataPackFromPath(GetResourcesPakFilePath(
- "chrome_200_percent.pak"),
- SCALE_FACTOR_200P);
- }
+
+ // 2x non touch
+ // TODO(flackr): Don't log an error message if these are not found as this
+ // is an expected case in ChromeOS.
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "chrome_200_percent.pak"),
+ SCALE_FACTOR_200P);
}
}
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/base/ui_base_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698