Index: chrome/browser/views/options/general_page_view.cc |
=================================================================== |
--- chrome/browser/views/options/general_page_view.cc (revision 16848) |
+++ chrome/browser/views/options/general_page_view.cc (working copy) |
@@ -31,6 +31,7 @@ |
#include "grit/app_resources.h" |
#include "grit/chromium_strings.h" |
#include "grit/generated_resources.h" |
+#include "net/base/net_util.h" |
#include "third_party/skia/include/core/SkBitmap.h" |
#include "views/controls/button/radio_button.h" |
#include "views/controls/label.h" |
@@ -301,9 +302,11 @@ |
std::wstring CustomHomePagesTableModel::GetText(int row, int column_id) { |
DCHECK(column_id == 0); |
DCHECK(row >= 0 && row < RowCount()); |
+ std::wstring languages = |
+ profile_->GetPrefs()->GetString(prefs::kAcceptLanguages); |
// No need to force URL to have LTR directionality because the custom home |
// pages control is created using LTR directionality. |
- return UTF8ToWide(entries_[row].url.spec()); |
+ return net::FormatUrl(entries_[row].url, languages); |
} |
SkBitmap CustomHomePagesTableModel::GetIcon(int row) { |