| Index: ui/views/controls/label.cc
|
| diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc
|
| index 43dafe649e284f35b120ab103e40be2ff39cb952..766452012697dfbbc3b33dd05e44a9f772c15488 100644
|
| --- a/ui/views/controls/label.cc
|
| +++ b/ui/views/controls/label.cc
|
| @@ -496,9 +496,7 @@
|
| // |width| can be 0 when getting the default text size, in that case
|
| // the ideal lines (i.e. broken at newline characters) are wanted.
|
| if (width <= 0) {
|
| - lines = base::SplitString(
|
| - render_text_->GetDisplayText(), base::string16(1, '\n'),
|
| - base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
|
| + base::SplitString(render_text_->GetDisplayText(), '\n', &lines);
|
| } else {
|
| gfx::ElideRectangleText(render_text_->GetDisplayText(), font_list(), width,
|
| std::numeric_limits<int>::max(),
|
|
|