| Index: views/view_text_utils.cc
|
| diff --git a/views/view_text_utils.cc b/views/view_text_utils.cc
|
| index 0a3fc33834691a98705976b1213573b7d68554e9..d221e193c3db94c35c19f3fed619c5023e525f01 100644
|
| --- a/views/view_text_utils.cc
|
| +++ b/views/view_text_utils.cc
|
| @@ -142,7 +142,7 @@ void DrawTextStartingFrom(gfx::Canvas* canvas,
|
| canvas->DrawStringInt(word, font, text_color, x, y, w, font.GetHeight(),
|
| flags);
|
|
|
| - if (word.size() > 0 && word[word.size() - 1] == '\x0a') {
|
| + if (!word.empty() && word[word.size() - 1] == '\x0a') {
|
| // When we come across '\n', we move to the beginning of the next line.
|
| position->set_width(0);
|
| position->Enlarge(0, font.GetHeight());
|
|
|