diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-01 21:03:52 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-01 21:03:52 +0000 |
commit | 9c55de8ff9f0f0f4dc907794266e7bbb21e75b66 (patch) | |
tree | c7c6f8edba1b1f22b48c49e98e5bccf112278548 | |
parent | cefc13ee89e350bdf2e66b1e17a191997be32b41 (diff) | |
download | chromium_src-9c55de8ff9f0f0f4dc907794266e7bbb21e75b66.zip chromium_src-9c55de8ff9f0f0f4dc907794266e7bbb21e75b66.tar.gz chromium_src-9c55de8ff9f0f0f4dc907794266e7bbb21e75b66.tar.bz2 |
Cleanup: Remove a browser GRD entry that does not require translation.
Review URL: https://codereview.chromium.org/11362021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165499 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/app/chromium_strings.grd | 3 | ||||
-rw-r--r-- | chrome/app/google_chrome_strings.grd | 3 | ||||
-rw-r--r-- | chrome/browser/ui/browser.cc | 11 |
3 files changed, 5 insertions, 12 deletions
diff --git a/chrome/app/chromium_strings.grd b/chrome/app/chromium_strings.grd index 4509bb4..0220efa 100644 --- a/chrome/app/chromium_strings.grd +++ b/chrome/app/chromium_strings.grd @@ -288,9 +288,6 @@ be available for now. --> <message name="IDS_BROWSER_WINDOW_TITLE_FORMAT" desc="The format for titles displayed in tabs and popup windows"> <ph name="PAGE_TITLE">$1<ex>Google</ex></ph> - Chromium </message> - <message name="IDS_BROWSER_WINDOW_TITLE_FORMAT_NO_LOGO" desc="The format for titles displayed when the window has no distributor logo displayed"> - <ph name="PAGE_TITLE">$1<ex>Google</ex></ph> - </message> <if expr="not pp_ifdef('chromeos')"> <message name="IDS_GET_HELP_USING_CHROME" desc="Text of the button which takes the user to the Chrome help page."> Get help with using Chromium diff --git a/chrome/app/google_chrome_strings.grd b/chrome/app/google_chrome_strings.grd index 2222b78..031d98f 100644 --- a/chrome/app/google_chrome_strings.grd +++ b/chrome/app/google_chrome_strings.grd @@ -211,9 +211,6 @@ Chrome supports. --> <message name="IDS_BROWSER_WINDOW_TITLE_FORMAT" desc="The format for titles displayed in tabs and popup windows"> <ph name="PAGE_TITLE">$1<ex>Google</ex></ph> - Google Chrome </message> - <message name="IDS_BROWSER_WINDOW_TITLE_FORMAT_NO_LOGO" desc="The format for titles displayed when the window has no distributor logo displayed"> - <ph name="PAGE_TITLE">$1<ex>Google</ex></ph> - </message> <if expr="not pp_ifdef('chromeos')"> <message name="IDS_GET_HELP_USING_CHROME" desc="Text of the button which takes the user to the Chrome help page."> Get help with using Chrome diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc index 005d66c..4c430dc 100644 --- a/chrome/browser/ui/browser.cc +++ b/chrome/browser/ui/browser.cc @@ -7,7 +7,7 @@ #if defined(OS_WIN) #include <windows.h> #include <shellapi.h> -#endif // OS_WIN +#endif // defined(OS_WIN) #include <algorithm> #include <string> @@ -569,11 +569,10 @@ string16 Browser::GetWindowTitleForCurrentTab() const { // the application name. return title; #else - int string_id = IDS_BROWSER_WINDOW_TITLE_FORMAT; // Don't append the app name to window titles on app frames and app popups - if (is_app()) - string_id = IDS_BROWSER_WINDOW_TITLE_FORMAT_NO_LOGO; - return l10n_util::GetStringFUTF16(string_id, title); + return is_app() ? + title : + l10n_util::GetStringFUTF16(IDS_BROWSER_WINDOW_TITLE_FORMAT, title); #endif } @@ -1255,7 +1254,7 @@ void Browser::OnWindowDidShow() { base::Time::Now() - *process_creation_time); } } -#endif // OS_MACOSX || OS_WIN +#endif // defined(OS_MACOSX) || defined(OS_WIN) // Nothing to do for non-tabbed windows. if (!is_type_tabbed()) |