From 57e68dbaed7d1c9479570de42930727d527cc340 Mon Sep 17 00:00:00 2001 From: "avi@google.com" Date: Fri, 15 May 2009 21:30:50 +0000 Subject: 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 --- chrome/browser/browser.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/browser/browser.cc') 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 -- cgit v1.1