DescriptionRemove 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 #Messages
Total messages: 18 (11 generated)
|