GTK: Don't put a blank line in the tooltip for nameless bookmark bar bookmarks.
Man, why is it so hard to get this right??
BUG=none
TEST=look at tooltips for a bookmark that has
a) no title
b) no url (folder)
c) both title and url
Review URL: http://codereview.chromium.org/207003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26418 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/gtk/bookmark_utils_gtk.cc b/chrome/browser/gtk/bookmark_utils_gtk.cc
index 9c5730f..893ef7a3 100644
--- a/chrome/browser/gtk/bookmark_utils_gtk.cc
+++ b/chrome/browser/gtk/bookmark_utils_gtk.cc
@@ -159,7 +159,7 @@
g_free(escaped_url_cstr);
std::string tooltip;
- if (url == title) {
+ if (url == title || title.empty()) {
return escaped_url;
} else {
std::string truncated_title = WideToUTF8(l10n_util::TruncateString(