summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-20 22:07:32 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-20 22:07:32 +0000
commit731f8a457d14ed49c2aed56fd5a59d1719837171 (patch)
tree3cfaaccd4e666fb455df028a7e856ebebef4e95d /chrome/browser/browser.cc
parent772836b19450e8e15ac98e6f783af0fc1a2fb8e3 (diff)
downloadchromium_src-731f8a457d14ed49c2aed56fd5a59d1719837171.zip
chromium_src-731f8a457d14ed49c2aed56fd5a59d1719837171.tar.gz
chromium_src-731f8a457d14ed49c2aed56fd5a59d1719837171.tar.bz2
Fix misleading name and comment of Browser::GetCurrentPageTitle.
GetWindowTitleForCurrentTab more accurately describes what this function really does. TEST=none http://crbug.com/16231 Review URL: http://codereview.chromium.org/155534 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21114 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index d20cd3f..8567bd0 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -431,12 +431,12 @@ SkBitmap Browser::GetCurrentPageIcon() const {
return contents ? contents->GetFavIcon() : SkBitmap();
}
-string16 Browser::GetCurrentPageTitle() const {
+string16 Browser::GetWindowTitleForCurrentTab() const {
TabContents* contents = tabstrip_model_.GetSelectedTabContents();
string16 title;
- // |contents| can be NULL because GetCurrentPageTitle is called by the window
- // during the window's creation (before tabs have been added).
+ // |contents| can be NULL because GetWindowTitleForCurrentTab is called by the
+ // window during the window's creation (before tabs have been added).
if (contents) {
title = contents->GetTitle();
FormatTitleForDisplay(&title);