| Index: content/browser/webui/shared_resources_data_source.cc
|
| diff --git a/content/browser/webui/shared_resources_data_source.cc b/content/browser/webui/shared_resources_data_source.cc
|
| index 66fe0f1eae17568154ea4a68f3f8253213b366a8..587ae01e96c184dbf8fc86120c042dfc4a9d44ba 100644
|
| --- a/content/browser/webui/shared_resources_data_source.cc
|
| +++ b/content/browser/webui/shared_resources_data_source.cc
|
| @@ -85,17 +85,8 @@ void SharedResourcesDataSource::StartDataRequest(
|
| scoped_refptr<base::RefCountedMemory> bytes;
|
|
|
| if (idr == IDR_WEBUI_CSS_TEXT_DEFAULTS) {
|
| - std::vector<std::string> placeholders;
|
| - placeholders.push_back(webui::GetTextDirection()); // $1
|
| - placeholders.push_back(webui::GetFontFamily()); // $2
|
| - placeholders.push_back(webui::GetFontSize()); // $3
|
| -
|
| - ContentClient* content_client = GetContentClient();
|
| - const std::string& chrome_shared =
|
| - content_client->GetDataResource(idr, ui::SCALE_FACTOR_NONE).as_string();
|
| - std::string replaced =
|
| - ReplaceStringPlaceholders(chrome_shared, placeholders, nullptr);
|
| - bytes = base::RefCountedString::TakeString(&replaced);
|
| + std::string css = webui::GetWebUICSSTextDefaults();
|
| + bytes = base::RefCountedString::TakeString(&css);
|
| } else {
|
| bytes = GetContentClient()->GetDataResourceBytes(idr);
|
| }
|
|
|