From 731f8a457d14ed49c2aed56fd5a59d1719837171 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Mon, 20 Jul 2009 22:07:32 +0000 Subject: 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 --- chrome/browser/browser.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/browser.cc') 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); -- cgit v1.1