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

Unified Diff: ios/chrome/browser/share_extension/share_extension_item_receiver.mm

Issue 2590973002: Fix DCHECK when adding non ASCII bookmark from share extension. (Closed)
Patch Set: UTF8ToUTF16 Created 4 years 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: ios/chrome/browser/share_extension/share_extension_item_receiver.mm
diff --git a/ios/chrome/browser/share_extension/share_extension_item_receiver.mm b/ios/chrome/browser/share_extension/share_extension_item_receiver.mm
index a63334068cb0ad2dd50b566448eaeb6493f4f3b6..58da1e248157e35b9f91f36ee9cf5343c0ecd2de 100644
--- a/ios/chrome/browser/share_extension/share_extension_item_receiver.mm
+++ b/ios/chrome/browser/share_extension/share_extension_item_receiver.mm
@@ -220,7 +220,7 @@ void LogHistogramReceivedItem(ShareExtensionItemReceived type) {
LogHistogramReceivedItem(BOOKMARK_ENTRY);
_bookmarkModel->AddURL(
_bookmarkModel->mobile_node(), 0,
- base::ASCIIToUTF16(entryTitle), entryURL);
+ base::UTF8ToUTF16(entryTitle), entryURL);
}
if (completion) {
web::WebThread::PostTask(web::WebThread::FILE,
« 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