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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 1695023: linux: unify proxy config docs (Closed)
Patch Set: -linux Created 10 years, 8 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
« chrome/app/resources/manpage.1.in ('K') | « chrome/app/resources/manpage.1.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_about_handler.cc
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index fa6bbe4ac4ac347195775516f83c934025d3b218..13950f73c6a80a257896a441004ecfb389e4f7cd 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -458,9 +458,14 @@ std::string AboutLinuxProxyConfig() {
data.append("<!DOCTYPE HTML>\n");
data.append("<html><head><meta charset=\"utf-8\"><title>");
data.append(l10n_util::GetStringUTF8(IDS_ABOUT_LINUX_PROXY_CONFIG_TITLE));
- data.append("</title></head><body>\n");
- data.append(l10n_util::GetStringFUTF8(IDS_ABOUT_LINUX_PROXY_CONFIG_BODY,
- l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)));
+ data.append("</title>");
+ data.append("<style>body { max-width: 70ex; padding: 2ex 5ex; }</style>");
+ data.append("</head><body>\n");
+ FilePath binary = CommandLine::ForCurrentProcess()->GetProgram();
+ data.append(l10n_util::GetStringFUTF8(
+ IDS_ABOUT_LINUX_PROXY_CONFIG_BODY,
+ l10n_util::GetStringUTF16(IDS_PRODUCT_NAME),
+ ASCIIToUTF16(binary.BaseName().value())));
data.append("</body></html>\n");
return data;
}
« chrome/app/resources/manpage.1.in ('K') | « chrome/app/resources/manpage.1.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698