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

Issue 2230983002: Stop using UIPasteboardChangedNotification. (Closed)

Created:
4 years, 4 months ago by jif
Modified:
4 years, 4 months ago
Reviewers:
jif-google, Olivier
CC:
chromium-reviews, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop using UIPasteboardChangedNotification. iOS10 does not trigger UIPasteboardChangedNotification notifications on pasteboard change ( filed bug with Apple: rdr://27477065 ). This CL is a workaround where we check if the pasteboard changed when we attempt to display its content. BUG=628592 Committed: https://crrev.com/fe97735842a1acb2c289538c40a14bc78164312e Cr-Commit-Position: refs/heads/master@{#412788}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments. #

Total comments: 4

Patch Set 3 : Fixed unittest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -117 lines) Patch
M components/open_from_clipboard/clipboard_recent_content.h View 1 chunk +1 line, -4 lines 0 comments Download
M components/open_from_clipboard/clipboard_recent_content_ios.h View 1 3 chunks +14 lines, -28 lines 0 comments Download
M components/open_from_clipboard/clipboard_recent_content_ios.mm View 1 13 chunks +34 lines, -76 lines 0 comments Download
M components/open_from_clipboard/clipboard_recent_content_ios_unittest.mm View 1 2 4 chunks +22 lines, -4 lines 0 comments Download
M components/open_from_clipboard/fake_clipboard_recent_content.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M components/open_from_clipboard/fake_clipboard_recent_content.cc View 1 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
jif
I haven't updated the unittests yet, but can you still TAL?
4 years, 4 months ago (2016-08-10 13:23:45 UTC) #4
Olivier
https://codereview.chromium.org/2230983002/diff/1/components/open_from_clipboard/clipboard_recent_content_ios.h File components/open_from_clipboard/clipboard_recent_content_ios.h (right): https://codereview.chromium.org/2230983002/diff/1/components/open_from_clipboard/clipboard_recent_content_ios.h#newcode35 components/open_from_clipboard/clipboard_recent_content_ios.h:35: void CheckIfPasteboardChanged(); Check... is not a name for a ...
4 years, 4 months ago (2016-08-10 13:46:42 UTC) #5
jif-google
thanks. ptal. https://codereview.chromium.org/2230983002/diff/1/components/open_from_clipboard/clipboard_recent_content_ios.h File components/open_from_clipboard/clipboard_recent_content_ios.h (right): https://codereview.chromium.org/2230983002/diff/1/components/open_from_clipboard/clipboard_recent_content_ios.h#newcode35 components/open_from_clipboard/clipboard_recent_content_ios.h:35: void CheckIfPasteboardChanged(); On 2016/08/10 13:46:41, Olivier Robin ...
4 years, 4 months ago (2016-08-11 13:39:55 UTC) #8
jif-google
ping
4 years, 4 months ago (2016-08-17 09:40:23 UTC) #9
Olivier
Oups, did the comments, but did not send them 2 questions, then if answer is ...
4 years, 4 months ago (2016-08-17 11:54:30 UTC) #10
jif
thanks. https://codereview.chromium.org/2230983002/diff/40001/components/open_from_clipboard/clipboard_recent_content_ios.mm File components/open_from_clipboard/clipboard_recent_content_ios.mm (left): https://codereview.chromium.org/2230983002/diff/40001/components/open_from_clipboard/clipboard_recent_content_ios.mm#oldcode255 components/open_from_clipboard/clipboard_recent_content_ios.mm:255: void ClipboardRecentContentIOS::RecentURLDisplayed() { On 2016/08/17 11:54:29, Olivier Robin ...
4 years, 4 months ago (2016-08-17 15:43:01 UTC) #11
jif
(ptal)
4 years, 4 months ago (2016-08-17 16:19:01 UTC) #12
jif
On 2016/08/17 16:19:01, jif wrote: > (ptal) nevermind, forgot that it LGTY if everything was ...
4 years, 4 months ago (2016-08-17 16:19:42 UTC) #13
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/2230983002/40001
4 years, 4 months ago (2016-08-17 16:20:10 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/53652)
4 years, 4 months ago (2016-08-17 16:39:42 UTC) #17
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/2230983002/60001
4 years, 4 months ago (2016-08-18 09:45:23 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 4 months ago (2016-08-18 10:20:24 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 10:22:31 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fe97735842a1acb2c289538c40a14bc78164312e
Cr-Commit-Position: refs/heads/master@{#412788}

Powered by Google App Engine
This is Rietveld 408576698