diff options
Diffstat (limited to 'chrome/browser/tab_contents/navigation_controller.cc')
-rw-r--r-- | chrome/browser/tab_contents/navigation_controller.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/navigation_controller.cc b/chrome/browser/tab_contents/navigation_controller.cc index cbe8d0f..6efd343 100644 --- a/chrome/browser/tab_contents/navigation_controller.cc +++ b/chrome/browser/tab_contents/navigation_controller.cc @@ -255,8 +255,8 @@ NavigationEntry* NavigationController::CreateNavigationEntry( entry->set_user_typed_url(url); entry->set_update_virtual_url_with_url(reverse_on_redirect); if (url.SchemeIsFile()) { - std::wstring languages = profile->GetPrefs()->GetString( - prefs::kAcceptLanguages); + std::wstring languages = UTF8ToWide(profile->GetPrefs()->GetString( + prefs::kAcceptLanguages)); entry->set_title(WideToUTF16Hack( file_util::GetFilenameFromPath(net::FormatUrl(url, languages)))); } |