diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-23 20:49:07 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-23 20:49:07 +0000 |
commit | 3d627bbc21bb7a960cec7db390d0e19c98c65f0e (patch) | |
tree | cea7296968cf3f3ddf30e5110441e15cf5ea49e2 /chrome/browser/navigation_entry.cc | |
parent | 89ce0d09ef9f8c021a9ce441b1ffdf442d203d35 (diff) | |
download | chromium_src-3d627bbc21bb7a960cec7db390d0e19c98c65f0e.zip chromium_src-3d627bbc21bb7a960cec7db390d0e19c98c65f0e.tar.gz chromium_src-3d627bbc21bb7a960cec7db390d0e19c98c65f0e.tar.bz2 |
This fixes http://code.google.com/p/chromium/issues/detail?id=2529, which is
tabs displaying Loading/Untitled in Chrome. We should display the page URL
if the title of the page is blank.
Fix on these lines.
R=beng
Review URL: http://codereview.chromium.org/7905
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3852 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/navigation_entry.cc')
-rw-r--r-- | chrome/browser/navigation_entry.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/navigation_entry.cc b/chrome/browser/navigation_entry.cc index 2cb98f2..8a24a3d 100644 --- a/chrome/browser/navigation_entry.cc +++ b/chrome/browser/navigation_entry.cc @@ -54,3 +54,9 @@ NavigationEntry::NavigationEntry(TabContentsType type, has_post_data_(false), restored_(false) { } + +const std::wstring& NavigationEntry::GetTitleForDisplay() { + if (title_.empty()) + return url_as_string_; + return title_; +}
\ No newline at end of file |