summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/about_ui.cc
diff options
context:
space:
mode:
authorflackr@chromium.org <flackr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-24 11:04:57 +0000
committerflackr@chromium.org <flackr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-24 11:04:57 +0000
commitc49201a506dba0e3a04aad623e4b259f948f3159 (patch)
tree2a93fff52861f5c8dd87e23bc23d170b7cb1309e /chrome/browser/ui/webui/about_ui.cc
parent16bb3c2f909662329b117e063280f6cfc2cca3f9 (diff)
downloadchromium_src-c49201a506dba0e3a04aad623e4b259f948f3159.zip
chromium_src-c49201a506dba0e3a04aad623e4b259f948f3159.tar.gz
chromium_src-c49201a506dba0e3a04aad623e4b259f948f3159.tar.bz2
Revert "Revert 137734 - Select theme resources from ResourceBundle at requested scale factor."
Relanding original CL 137734, http://codereview.chromium.org/10387010/. TBR=aa,abodenha,ben,sail,tony BUG=123611 TEST=All try bots pass and aura runs without errors. Review URL: https://chromiumcodereview.appspot.com/10412004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138769 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/about_ui.cc')
-rw-r--r--chrome/browser/ui/webui/about_ui.cc20
1 files changed, 11 insertions, 9 deletions
diff --git a/chrome/browser/ui/webui/about_ui.cc b/chrome/browser/ui/webui/about_ui.cc
index 89fd4fa..6d7d77c 100644
--- a/chrome/browser/ui/webui/about_ui.cc
+++ b/chrome/browser/ui/webui/about_ui.cc
@@ -65,6 +65,7 @@
#include "net/base/escape.h"
#include "net/base/net_util.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/base/layout.h"
#include "ui/base/resource/resource_bundle.h"
#include "v8/include/v8.h"
#include "webkit/glue/user_agent.h"
@@ -72,8 +73,8 @@
#include "webkit/plugins/webplugininfo.h"
#if defined(OS_LINUX) || defined(OS_OPENBSD)
-#include "content/public/common/sandbox_linux.h"
#include "content/public/browser/zygote_host_linux.h"
+#include "content/public/common/sandbox_linux.h"
#endif
#if defined(OS_WIN)
@@ -246,7 +247,7 @@ class ChromeOSTermsHandler
// Do nothing if OEM EULA load failed.
if (contents_.empty() && path_ != chrome::kOemEulaURLPath) {
contents_ = ResourceBundle::GetSharedInstance().GetRawDataResource(
- IDR_TERMS_HTML).as_string();
+ IDR_TERMS_HTML, ui::SCALE_FACTOR_NONE).as_string();
}
source_->FinishDataRequest(contents_, request_id_);
}
@@ -839,7 +840,8 @@ void FinishMemoryDataRequest(const std::string& path,
source->FinishDataRequest(
ResourceBundle::GetSharedInstance().GetRawDataResource(
path == kMemoryJsPath ? IDR_ABOUT_MEMORY_JS :
- IDR_ABOUT_MEMORY_HTML).as_string(), request_id);
+ IDR_ABOUT_MEMORY_HTML,
+ ui::SCALE_FACTOR_NONE).as_string(), request_id);
}
}
@@ -990,8 +992,8 @@ std::string AboutStats(const std::string& query) {
} else {
// Get about_stats.html/js from resource bundle.
data = ResourceBundle::GetSharedInstance().GetRawDataResource(
- (query == kStatsJsPath ? IDR_ABOUT_STATS_JS : IDR_ABOUT_STATS_HTML)).
- as_string();
+ (query == kStatsJsPath ? IDR_ABOUT_STATS_JS : IDR_ABOUT_STATS_HTML),
+ ui::SCALE_FACTOR_NONE).as_string();
if (query != kStatsJsPath) {
// Clear the timer list since we stored the data in the timers list
@@ -1086,7 +1088,7 @@ std::string AboutVersionStaticContent(const std::string& query) {
return ResourceBundle::GetSharedInstance().GetRawDataResource(
query == kVersionJsPath ?
IDR_ABOUT_VERSION_JS :
- IDR_ABOUT_VERSION_HTML).as_string();
+ IDR_ABOUT_VERSION_HTML, ui::SCALE_FACTOR_NONE).as_string();
}
std::string AboutVersionStrings(DictionaryValue* localized_strings,
@@ -1387,7 +1389,7 @@ void AboutUIHTMLSource::StartDataRequest(const std::string& path,
} else if (host == chrome::kChromeUICreditsHost) {
int idr = (path == kCreditsJsPath) ? IDR_CREDITS_JS : IDR_CREDITS_HTML;
response = ResourceBundle::GetSharedInstance().GetRawDataResource(
- idr).as_string();
+ idr, ui::SCALE_FACTOR_NONE).as_string();
#if defined(OS_CHROMEOS)
} else if (host == chrome::kChromeUICryptohomeHost) {
FinishCryptohomeDataRequest(this, path, request_id);
@@ -1418,7 +1420,7 @@ void AboutUIHTMLSource::StartDataRequest(const std::string& path,
response = AboutNetwork(path);
} else if (host == chrome::kChromeUIOSCreditsHost) {
response = ResourceBundle::GetSharedInstance().GetRawDataResource(
- IDR_OS_CREDITS_HTML).as_string();
+ IDR_OS_CREDITS_HTML, ui::SCALE_FACTOR_NONE).as_string();
#endif
#if defined(OS_LINUX) || defined(OS_OPENBSD)
} else if (host == chrome::kChromeUISandboxHost) {
@@ -1432,7 +1434,7 @@ void AboutUIHTMLSource::StartDataRequest(const std::string& path,
return;
#else
response = ResourceBundle::GetSharedInstance().GetRawDataResource(
- IDR_TERMS_HTML).as_string();
+ IDR_TERMS_HTML, ui::SCALE_FACTOR_NONE).as_string();
#endif
} else if (host == chrome::kChromeUIVersionHost) {
if (path == kStringsJsPath) {