summaryrefslogtreecommitdiffstats
path: root/chrome/browser/navigation_entry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/navigation_entry.cc')
-rw-r--r--chrome/browser/navigation_entry.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/chrome/browser/navigation_entry.cc b/chrome/browser/navigation_entry.cc
index 18992d6..f7ed6c6 100644
--- a/chrome/browser/navigation_entry.cc
+++ b/chrome/browser/navigation_entry.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/navigation_entry.h"
#include "chrome/common/resource_bundle.h"
-#include "net/base/escape.h"
// Use this to get a new unique ID for a NavigationEntry during construction.
// The returned ID is guaranteed to be nonzero (which is the "no ID" indicator).
@@ -59,12 +58,7 @@ NavigationEntry::NavigationEntry(TabContentsType type,
}
const std::wstring& NavigationEntry::GetTitleForDisplay() {
- if (title_.empty()) {
- std::string filename = url_.ExtractFileName();
- title_ = UTF8ToWide(filename.empty() ?
- url_.spec() :
- UnescapeURLComponent(filename, UnescapeRule::SPACES |
- UnescapeRule::URL_SPECIAL_CHARS));
- }
+ if (title_.empty())
+ return url_as_string_;
return title_;
} \ No newline at end of file