[Mac] Change linebreak on paste in Omnibox.
commit1ec495fee65d2efc9429c383ae60198ff8e8eb46
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 22 Jun 2012 18:20:21 +0000 (22 18:20 +0000)
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 22 Jun 2012 18:20:21 +0000 (22 18:20 +0000)
tree37d08921241ebb09ffcc9ddc051cbfd9cde7402f
parentfbea2f63a553be3822a1edc5911262ffa28e7ced
[Mac] Change linebreak on paste in Omnibox.

Omnibox can't have linebreaks, so the code stripped them so that
pasted wrapped URLs worked.  That breaks pasted search text, such as
street addresses, so convert newlines to spaces if there is other
whitespace present.

Also convert OmniboxViewMac code to use Omnibox version of
GetClipboardText(), so that the code can be cross-platform.

BUG=51971,133848
TEST=See bug.

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143090

Review URL: https://chromiumcodereview.appspot.com/10534149

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143646 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm
chrome/browser/ui/omnibox/omnibox_view.cc
chrome/browser/ui/omnibox/omnibox_view_unittest.cc