Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Unified Diff: chrome/browser/bookmarks/bookmark_drag_data.cc

Issue 3137031: Fix small bug in BookmarkDragData: GURL specs are UTF-8, not ASCII. (Closed)
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_drag_data.cc
diff --git a/chrome/browser/bookmarks/bookmark_drag_data.cc b/chrome/browser/bookmarks/bookmark_drag_data.cc
index bdd56ba04e9f25c90c98a7a4471fd56927ffd1cf..08624028ed5162713f8d05b1619cdf363dba7350 100644
--- a/chrome/browser/bookmarks/bookmark_drag_data.cc
+++ b/chrome/browser/bookmarks/bookmark_drag_data.cc
@@ -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));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698