Fix small bug in BookmarkDragData: GURL specs are UTF-8, not ASCII.

BUG=none
TEST=I can't be bothered

Review URL: http://codereview.chromium.org/3137031

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57067 0039d316-1c4b-4281-b951-d872f2087c98
parent e7f23b89
......@@ -208,7 +208,7 @@ void BookmarkDragData::Write(Profile* profile, OSExchangeData* data) const {
// clipboard.
if (elements.size() == 1 && elements[0].is_url) {
if (elements[0].url.SchemeIs(chrome::kJavaScriptScheme)) {
data->SetString(ASCIIToWide(elements[0].url.spec()));
data->SetString(UTF8ToWide(elements[0].url.spec()));
} else {
data->SetURL(elements[0].url, UTF16ToWide(elements[0].title));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment