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

Issue 1288733002: Add hash to OFC pasteboard change detection (Closed)

Created:
5 years, 4 months ago by Olivier
Modified:
5 years, 4 months ago
Reviewers:
droger, jif, jif-google
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

Add hash to OFC pasteboard change detection Due to a bug in iOS SDK, the change count is not enough to detect pasteboard change after a reboot. BUG=510364 Committed: https://crrev.com/80ac2af9f7a302e7a3e3d71a15fd070838f4ef2d Cr-Commit-Position: refs/heads/master@{#343189}

Patch Set 1 #

Patch Set 2 : oups #

Patch Set 3 : fix WeakMD5FromString #

Patch Set 4 : fix FakeClipboardRecentContent #

Patch Set 5 : fixing unittests #

Total comments: 2

Patch Set 6 : feedback #

Total comments: 7

Patch Set 7 : feedback #

Patch Set 8 : moved comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -90 lines) Patch
M components/open_from_clipboard/clipboard_recent_content.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/open_from_clipboard/clipboard_recent_content_ios.h View 1 2 3 4 5 6 4 chunks +26 lines, -11 lines 0 comments Download
M components/open_from_clipboard/clipboard_recent_content_ios.mm View 1 2 3 4 5 6 7 7 chunks +119 lines, -76 lines 0 comments Download
M components/open_from_clipboard/clipboard_recent_content_ios_unittest.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M components/open_from_clipboard/fake_clipboard_recent_content.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/open_from_clipboard/fake_clipboard_recent_content.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/open_from_clipboard/create_clipboard_recent_content.mm View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 22 (7 generated)
Olivier
I need to fix the unittests but you can take a first look.
5 years, 4 months ago (2015-08-12 16:58:00 UTC) #2
Olivier
5 years, 4 months ago (2015-08-13 09:01:38 UTC) #4
droger
https://codereview.chromium.org/1288733002/diff/70001/components/open_from_clipboard/clipboard_recent_content_ios.h File components/open_from_clipboard/clipboard_recent_content_ios.h (right): https://codereview.chromium.org/1288733002/diff/70001/components/open_from_clipboard/clipboard_recent_content_ios.h#newcode42 components/open_from_clipboard/clipboard_recent_content_ios.h:42: void LoadFromUserDefaults(); Don't put your new functions in the ...
5 years, 4 months ago (2015-08-13 09:57:00 UTC) #5
Olivier
Done, thanks https://codereview.chromium.org/1288733002/diff/70001/components/open_from_clipboard/clipboard_recent_content_ios.h File components/open_from_clipboard/clipboard_recent_content_ios.h (right): https://codereview.chromium.org/1288733002/diff/70001/components/open_from_clipboard/clipboard_recent_content_ios.h#newcode42 components/open_from_clipboard/clipboard_recent_content_ios.h:42: void LoadFromUserDefaults(); On 2015/08/13 09:57:00, droger wrote: ...
5 years, 4 months ago (2015-08-13 11:33:03 UTC) #6
Olivier
Done, thanks
5 years, 4 months ago (2015-08-13 11:33:13 UTC) #7
droger
https://codereview.chromium.org/1288733002/diff/90001/components/open_from_clipboard/clipboard_recent_content_ios.h File components/open_from_clipboard/clipboard_recent_content_ios.h (right): https://codereview.chromium.org/1288733002/diff/90001/components/open_from_clipboard/clipboard_recent_content_ios.h#newcode44 components/open_from_clipboard/clipboard_recent_content_ios.h:44: Remove blank line. https://codereview.chromium.org/1288733002/diff/90001/components/open_from_clipboard/clipboard_recent_content_ios.mm File components/open_from_clipboard/clipboard_recent_content_ios.mm (right): https://codereview.chromium.org/1288733002/diff/90001/components/open_from_clipboard/clipboard_recent_content_ios.mm#newcode187 components/open_from_clipboard/clipboard_recent_content_ios.mm:187: ...
5 years, 4 months ago (2015-08-13 11:42:21 UTC) #8
droger
lgtm https://codereview.chromium.org/1288733002/diff/90001/components/open_from_clipboard/clipboard_recent_content_ios.mm File components/open_from_clipboard/clipboard_recent_content_ios.mm (right): https://codereview.chromium.org/1288733002/diff/90001/components/open_from_clipboard/clipboard_recent_content_ios.mm#newcode194 components/open_from_clipboard/clipboard_recent_content_ios.mm:194: BOOL md5_changed = ![md5 isEqualToData:last_pasteboard_entry_md5_]; On 2015/08/13 11:42:21, ...
5 years, 4 months ago (2015-08-13 11:51:52 UTC) #9
Olivier
https://codereview.chromium.org/1288733002/diff/90001/components/open_from_clipboard/clipboard_recent_content_ios.h File components/open_from_clipboard/clipboard_recent_content_ios.h (right): https://codereview.chromium.org/1288733002/diff/90001/components/open_from_clipboard/clipboard_recent_content_ios.h#newcode44 components/open_from_clipboard/clipboard_recent_content_ios.h:44: On 2015/08/13 11:42:21, droger wrote: > Remove blank line. ...
5 years, 4 months ago (2015-08-13 12:01:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288733002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288733002/130001
5 years, 4 months ago (2015-08-13 12:02:12 UTC) #13
jif-google
lgtm
5 years, 4 months ago (2015-08-13 12:04:58 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/87815)
5 years, 4 months ago (2015-08-13 12:10:11 UTC) #17
jif
lgtm
5 years, 4 months ago (2015-08-13 12:13:32 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288733002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288733002/130001
5 years, 4 months ago (2015-08-13 12:14:06 UTC) #20
commit-bot: I haz the power
Committed patchset #8 (id:130001)
5 years, 4 months ago (2015-08-13 13:44:19 UTC) #21
commit-bot: I haz the power
5 years, 4 months ago (2015-08-13 13:45:02 UTC) #22
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/80ac2af9f7a302e7a3e3d71a15fd070838f4ef2d
Cr-Commit-Position: refs/heads/master@{#343189}

Powered by Google App Engine
This is Rietveld 408576698