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

Issue 2434473005: Use SysNSStringToUTF8 instead of UTF8String in recent clipboard. (Closed)

Created:
4 years, 2 months ago by Olivier
Modified:
4 years, 2 months ago
Reviewers:
jif, jif-google
CC:
chromium-reviews, dcheng, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use SysNSStringToUTF8 instead of UTF8String in recent clipboard. It is possible that the string contained in the pasteboard is invalid. In that case, [string UTF8String] can return nil when SysNSStringToUTF8 returns "". URLFromPasteboard uses SysNSStringToUTF8. Note: [string canBeConvertedToEncoding:NSUTF8StringEncoding] is not reliable as it can return YES and UTF8String return nil. BUG=656108 Committed: https://crrev.com/e687fefd7265a5e4cc580e73d6e0e028ed52c24c Cr-Commit-Position: refs/heads/master@{#426463}

Patch Set 1 #

Patch Set 2 : use SysNSStringToUTF8 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M components/open_from_clipboard/clipboard_recent_content_ios.mm View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (5 generated)
Olivier
4 years, 2 months ago (2016-10-20 11:48:05 UTC) #2
Olivier
I changed my mind. Tell me if it is OK.
4 years, 2 months ago (2016-10-20 12:28:05 UTC) #4
jif-google
On 2016/10/20 12:28:05, Olivier Robin wrote: > I changed my mind. > Tell me if ...
4 years, 2 months ago (2016-10-20 12:45:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2434473005/20001
4 years, 2 months ago (2016-10-20 12:55:59 UTC) #7
jif
lgtm
4 years, 2 months ago (2016-10-20 13:06:23 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-20 13:12:36 UTC) #10
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:17:52 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e687fefd7265a5e4cc580e73d6e0e028ed52c24c
Cr-Commit-Position: refs/heads/master@{#426463}

Powered by Google App Engine
This is Rietveld 408576698