summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-07 00:41:04 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-07 00:41:04 +0000
commitd904bc88427330a9cf4a32f3129c2353736be5ab (patch)
treefc4a3bd31be8bbc7ae8ed77dc1e2431963aa0bf2 /chrome/browser/browser.cc
parent3c78ae92e0c9a8c1e3e33c68df8e8a8af7d76a6c (diff)
downloadchromium_src-d904bc88427330a9cf4a32f3129c2353736be5ab.zip
chromium_src-d904bc88427330a9cf4a32f3129c2353736be5ab.tar.gz
chromium_src-d904bc88427330a9cf4a32f3129c2353736be5ab.tar.bz2
Popup changes
Review URL: http://codereview.chromium.org/155075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20001 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index ea81a21..b1d5f72 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -444,16 +444,16 @@ std::wstring Browser::GetCurrentPageTitle() const {
if (title.empty())
title = l10n_util::GetString(IDS_TAB_UNTITLED_TITLE);
-#if defined(OS_WIN) || defined(OS_LINUX)
+#if defined(OS_MACOSX) || defined(LINUX2)
+ // On Mac, we don't want to suffix the page title with the application name.
+ return title;
+#elif 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
}