| Index: content/browser/tab_contents/navigation_controller.cc
|
| diff --git a/content/browser/tab_contents/navigation_controller.cc b/content/browser/tab_contents/navigation_controller.cc
|
| index 7601d2311fb7745c3cf5225e8649b6bcca5963b2..9eec1ad9cf8814d0f3cc380ff2376148ccbd24c3 100644
|
| --- a/content/browser/tab_contents/navigation_controller.cc
|
| +++ b/content/browser/tab_contents/navigation_controller.cc
|
| @@ -243,17 +243,6 @@ NavigationEntry* NavigationController::CreateNavigationEntry(
|
| entry->set_virtual_url(url);
|
| entry->set_user_typed_url(url);
|
| entry->set_update_virtual_url_with_url(reverse_on_redirect);
|
| - if (url.SchemeIsFile()) {
|
| - // Use the filename as the title, not the full path.
|
| - // We need to call FormatUrl() to perform URL de-escaping;
|
| - // it's a bit ugly to grab the filename out of the resulting string.
|
| - std::string languages =
|
| - profile->GetPrefs()->GetString(prefs::kAcceptLanguages);
|
| - std::wstring formatted = UTF16ToWideHack(net::FormatUrl(url, languages));
|
| - std::wstring filename =
|
| - FilePath::FromWStringHack(formatted).BaseName().ToWStringHack();
|
| - entry->set_title(WideToUTF16Hack(filename));
|
| - }
|
| return entry;
|
| }
|
|
|
|
|