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

Unified Diff: chrome/browser/ui/webui/about_ui.cc

Issue 10412004: Revert "Revert 137734 - Select theme resources from ResourceBundle at requested scale factor." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master Created 8 years, 7 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/browser/ui/pdf/pdf_unsupported_feature.cc ('k') | chrome/browser/ui/webui/bookmarks_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/about_ui.cc
diff --git a/chrome/browser/ui/webui/about_ui.cc b/chrome/browser/ui/webui/about_ui.cc
index 89fd4fa2f9089a336ee1794860ff4b59098175ef..6d7d77c99e2db68f662c74779d4a35699a7dc85e 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) {
« no previous file with comments | « chrome/browser/ui/pdf/pdf_unsupported_feature.cc ('k') | chrome/browser/ui/webui/bookmarks_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698