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

Issue 2901143002: Remove entry from map_ of ClipboardMap when jstr is null or empty (Closed)

Created:
3 years, 7 months ago by Shimi Zhang
Modified:
3 years, 7 months ago
Reviewers:
dcheng
CC:
chromium-reviews, Mark P
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove entry from map_ of ClipboardMap when jstr is null or empty A ClipData in Android side could have more than one entry in ClipboardMap, so if onPrimaryClipChanged happened, we need to remove invalidated entries from map_ of ClipboardMap. For instance, if we have an HTML ClipData, we will have two entries with key |kPlainTextFormat| and |kHTMLFormat| in ClipboardMap. If the following step is to copy plain text, only |kPlainTextFormat| entry got updated. However, on the paste side, it will ask HTML text first but HTML text is not valid anymore. BUG=725427 Review-Url: https://codereview.chromium.org/2901143002 Cr-Commit-Position: refs/heads/master@{#474163} Committed: https://chromium.googlesource.com/chromium/src/+/40b3e614e6305fdbe0b925307790ececaf3891ea

Patch Set 1 #

Patch Set 2 : remove entry from map #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -6 lines) Patch
M ui/base/clipboard/clipboard_android.cc View 1 1 chunk +11 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
Shimi Zhang
dcheng@, PTAL. Since this was removed by mpearson@, so ccing. Thanks!
3 years, 7 months ago (2017-05-23 22:13:46 UTC) #4
dcheng
On 2017/05/23 22:13:46, Shimi Zhang wrote: > dcheng@, PTAL. > > Since this was removed ...
3 years, 7 months ago (2017-05-23 23:13:24 UTC) #5
Shimi Zhang
On 2017/05/23 23:13:24, dcheng wrote: > On 2017/05/23 22:13:46, Shimi Zhang wrote: > > dcheng@, ...
3 years, 7 months ago (2017-05-24 00:21:49 UTC) #6
Shimi Zhang
On 2017/05/24 00:21:49, Shimi Zhang wrote: > On 2017/05/23 23:13:24, dcheng wrote: > > On ...
3 years, 7 months ago (2017-05-24 01:03:52 UTC) #10
dcheng
LGTM, assuming manual testing verified this fix
3 years, 7 months ago (2017-05-24 01:48:29 UTC) #11
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/2901143002/20001
3 years, 7 months ago (2017-05-24 04:42:44 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 04:48:32 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/40b3e614e6305fdbe0b925307790...

Powered by Google App Engine
This is Rietveld 408576698