Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(670)

Unified Diff: ui/message_center/views/bounded_label.cc

Issue 614103007: Error in popup on Link (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/message_center/views/bounded_label.cc
diff --git a/ui/message_center/views/bounded_label.cc b/ui/message_center/views/bounded_label.cc
index abbdcf3c19bf86e02697bfdde32f28685c786d60..86c7eb1ec86981e755f6f45386291e8e95db4ae0 100644
--- a/ui/message_center/views/bounded_label.cc
+++ b/ui/message_center/views/bounded_label.cc
@@ -143,9 +143,13 @@ std::vector<base::string16> InnerBoundedLabel::GetWrappedText(int width,
// Wrap, using INT_MAX for -1 widths that indicate no wrapping.
std::vector<base::string16> wrapped;
- gfx::ElideRectangleText(text(), font_list(),
+ gfx::ElideRectangleText(text(),
+ font_list(),
(width < 0) ? std::numeric_limits<int>::max() : width,
- height, gfx::WRAP_LONG_WORDS, &wrapped);
+ height,
+ gfx::WRAP_LONG_WORDS,
+ &wrapped,
+ nullptr);
// Elide if necessary.
if (lines > 0 && wrapped.size() > static_cast<unsigned int>(lines)) {

Powered by Google App Engine
This is Rietveld 408576698