Index: ui/views/widget/tooltip_manager.cc |
diff --git a/ui/views/widget/tooltip_manager.cc b/ui/views/widget/tooltip_manager.cc |
index f1a85fe2df44b8ac981e98a10f99a66249b750ea..00bd03642a608ab59858483ca8d12f423c331709 100644 |
--- a/ui/views/widget/tooltip_manager.cc |
+++ b/ui/views/widget/tooltip_manager.cc |
@@ -30,7 +30,7 @@ int TooltipManager::GetMaxWidth(const gfx::Display& display) { |
void TooltipManager::TrimTooltipText(base::string16* text) { |
// Clamp the tooltip length to kMaxTooltipLength so that we don't |
// accidentally DOS the user with a mega tooltip. |
- *text = gfx::TruncateString(*text, kMaxTooltipLength); |
+ *text = gfx::TruncateString(*text, kMaxTooltipLength, gfx::WORD_BREAK); |
} |
} // namespace views |