summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 21:30:50 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 21:30:50 +0000
commit57e68dbaed7d1c9479570de42930727d527cc340 (patch)
treec5f2e796b98b1fb3e911e05f492aeff7ead087b1 /chrome/browser/browser.cc
parente7e21c8163aa4b71d69d19ba5c9a7d5bfd0d8da9 (diff)
downloadchromium_src-57e68dbaed7d1c9479570de42930727d527cc340.zip
chromium_src-57e68dbaed7d1c9479570de42930727d527cc340.tar.gz
chromium_src-57e68dbaed7d1c9479570de42930727d527cc340.tar.bz2
Explicitly set the window title in the dock when minimizing a window/updating the current tab's title.
http://crbug.com/11982 Review URL: http://codereview.chromium.org/113430 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16187 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 9aaddee..e6b6598 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -420,12 +420,17 @@ std::wstring Browser::GetCurrentPageTitle() const {
if (title.empty())
title = l10n_util::GetString(IDS_TAB_UNTITLED_TITLE);
+#if defined(OS_WIN) || defined(OS_LINUX)
int string_id = IDS_BROWSER_WINDOW_TITLE_FORMAT;
// Don't append the app name to window titles when we're not displaying a
// distributor logo for the frame.
if (!ShouldShowDistributorLogo())
string_id = IDS_BROWSER_WINDOW_TITLE_FORMAT_NO_LOGO;
return l10n_util::GetStringF(string_id, title);
+#elif defined(OS_MACOSX)
+ // On Mac, we don't want to suffix the page title with the application name.
+ return title;
+#endif
}
// static