| Index: chrome/browser/ui/omnibox/omnibox_view.cc
|
| diff --git a/chrome/browser/ui/omnibox/omnibox_view.cc b/chrome/browser/ui/omnibox/omnibox_view.cc
|
| index 177bb7ecbf5ca84fe9bf8fe026200730d9b4cb87..02e33029eb4850f9989ccf9801c337bc7f7c8fc4 100644
|
| --- a/chrome/browser/ui/omnibox/omnibox_view.cc
|
| +++ b/chrome/browser/ui/omnibox/omnibox_view.cc
|
| @@ -42,7 +42,8 @@ base::string16 OmniboxView::SanitizeTextForPaste(const base::string16& text) {
|
| // TODO(shess): It may also make sense to ignore leading or
|
| // trailing whitespace when making this determination.
|
| for (size_t i = 0; i < text.size(); ++i) {
|
| - if (IsWhitespace(text[i]) && text[i] != '\n' && text[i] != '\r') {
|
| + if (base::IsUnicodeWhitespace(text[i]) &&
|
| + text[i] != '\n' && text[i] != '\r') {
|
| const base::string16 collapsed = base::CollapseWhitespace(text, false);
|
| // If the user is pasting all-whitespace, paste a single space
|
| // rather than nothing, since pasting nothing feels broken.
|
|
|