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

Unified Diff: chrome/browser/gtk/bookmark_utils_gtk.cc

Issue 3152034: Remove wstrings in bookmarks, part 5. (Closed)
Patch Set: yet moar 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
Index: chrome/browser/gtk/bookmark_utils_gtk.cc
diff --git a/chrome/browser/gtk/bookmark_utils_gtk.cc b/chrome/browser/gtk/bookmark_utils_gtk.cc
index 38c16df34a63a260c34f83403a29eb74af428c27..1e6eec95fb89d142f7c16caeaa976001eef94301 100644
--- a/chrome/browser/gtk/bookmark_utils_gtk.cc
+++ b/chrome/browser/gtk/bookmark_utils_gtk.cc
@@ -409,7 +409,7 @@ bool CreateNewBookmarkFromNamedUrl(GtkSelectionData* selection_data,
if (!gtk_dnd_util::ExtractNamedURL(selection_data, &url, &title))
return false;
- model->AddURL(parent, idx, UTF16ToWideHack(title), url);
+ model->AddURL(parent, idx, title, url);
return true;
}
@@ -419,7 +419,7 @@ bool CreateNewBookmarksFromURIList(GtkSelectionData* selection_data,
gtk_dnd_util::ExtractURIList(selection_data, &urls);
for (size_t i = 0; i < urls.size(); ++i) {
std::string title = GetNameForURL(urls[i]);
- model->AddURL(parent, idx++, UTF8ToWide(title), urls[i]);
+ model->AddURL(parent, idx++, UTF8ToUTF16(title), urls[i]);
}
return true;
}
« no previous file with comments | « chrome/browser/gtk/bookmark_bar_gtk_unittest.cc ('k') | chrome/browser/history/expire_history_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698