| 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 d1df59a823e53d677278fa2e2b0b3af5b9827130..df38f5c5bb7cbdf5c385d9cb01345016eca2a2d4 100644
|
| --- a/chrome/browser/ui/webui/about_ui.cc
|
| +++ b/chrome/browser/ui/webui/about_ui.cc
|
| @@ -66,6 +66,7 @@
|
| #include "net/base/net_util.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| +#include "ui/base/resource/resource_handle.h"
|
| #include "v8/include/v8.h"
|
| #include "webkit/glue/user_agent.h"
|
| #include "webkit/glue/webkit_glue.h"
|
| @@ -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::ResourceHandle::kScaleFactorNone).as_string();
|
| }
|
| source_->FinishDataRequest(contents_, request_id_);
|
| }
|
| @@ -837,7 +838,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::ResourceHandle::kScaleFactorNone).as_string(), request_id);
|
| }
|
| }
|
|
|
| @@ -988,8 +990,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::ResourceHandle::kScaleFactorNone).as_string();
|
|
|
| if (query != kStatsJsPath) {
|
| // Clear the timer list since we stored the data in the timers list
|
| @@ -1084,7 +1086,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::ResourceHandle::kScaleFactorNone).as_string();
|
| }
|
|
|
| std::string AboutVersionStrings(DictionaryValue* localized_strings,
|
| @@ -1385,7 +1387,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::ResourceHandle::kScaleFactorNone).as_string();
|
| #if defined(OS_CHROMEOS)
|
| } else if (host == chrome::kChromeUICryptohomeHost) {
|
| FinishCryptohomeDataRequest(this, path, request_id);
|
| @@ -1416,7 +1418,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::ResourceHandle::kScaleFactorNone).as_string();
|
| #endif
|
| #if defined(OS_LINUX) || defined(OS_OPENBSD)
|
| } else if (host == chrome::kChromeUISandboxHost) {
|
| @@ -1430,7 +1432,7 @@ void AboutUIHTMLSource::StartDataRequest(const std::string& path,
|
| return;
|
| #else
|
| response = ResourceBundle::GetSharedInstance().GetRawDataResource(
|
| - IDR_TERMS_HTML).as_string();
|
| + IDR_TERMS_HTML, ui::ResourceHandle::kScaleFactorNone).as_string();
|
| #endif
|
| } else if (host == chrome::kChromeUIVersionHost) {
|
| if (path == kStringsJsPath) {
|
|
|