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

Unified Diff: chrome/browser/chromeos/offline/offline_load_page.cc

Issue 14311003: Fix font on offline load page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/offline_load.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/offline/offline_load_page.cc
diff --git a/chrome/browser/chromeos/offline/offline_load_page.cc b/chrome/browser/chromeos/offline/offline_load_page.cc
index a165ede536d662535c206f9a1a66f3a878b04b25..7bf38146473b0da329bc77b202d3f3344633d827 100644
--- a/chrome/browser/chromeos/offline/offline_load_page.cc
+++ b/chrome/browser/chromeos/offline/offline_load_page.cc
@@ -99,11 +99,9 @@ std::string OfflineLoadPage::GetHTMLContents() {
// Activation
strings.SetBoolean("show_activation", ShowActivationMessage());
- bool rtl = base::i18n::IsRTL();
- strings.SetString("textdirection", rtl ? "rtl" : "ltr");
-
+ webui::SetFontAndTextDirection(&strings);
string16 failed_url(ASCIIToUTF16(url_.spec()));
- if (rtl)
+ if (base::i18n::IsRTL())
base::i18n::WrapStringWithLTRFormatting(&failed_url);
strings.SetString("url", failed_url);
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/offline_load.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698