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

Issue 1114213004: Remove NOTIMPLEMENTED() logspam on Android clipboard actions (Closed)

Created:
5 years, 7 months ago by Tobias Sargeant
Modified:
5 years, 5 months ago
Reviewers:
sadrul, sky, dcheng
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove NOTIMPLEMENTED() logspam. Provide an implementation that mirrors what org/chromium/ui/base/Clipboard.java can currently provide. Also add testing for ReadAvaliableTypes() and correct bounds error on Android with UnicodeHTMLTest. BUG=447167 Committed: https://crrev.com/868100a8a0ffe3506b4adcf7b21e5e6c06fa84ce Cr-Commit-Position: refs/heads/master@{#339879}

Patch Set 1 #

Patch Set 2 : Implement ReadAvailableTypes for the test clipboard too. #

Patch Set 3 : rebase #

Patch Set 4 : #

Patch Set 5 : clean up tests #

Total comments: 15

Patch Set 6 : address comments #

Patch Set 7 : #

Total comments: 1

Patch Set 8 : nits #

Patch Set 9 : Make substring operation safer in case of overflow #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -2 lines) Patch
M ui/base/clipboard/clipboard_android.cc View 1 1 chunk +14 lines, -2 lines 0 comments Download
M ui/base/clipboard/clipboard_test_template.h View 1 2 3 4 5 6 7 8 9 12 chunks +32 lines, -0 lines 0 comments Download
M ui/base/test/test_clipboard.cc View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
Tobias Sargeant
Could you please take a look? Thanks.
5 years, 5 months ago (2015-07-14 09:35:51 UTC) #2
dcheng
https://codereview.chromium.org/1114213004/diff/80001/ui/base/clipboard/clipboard_test_template.h File ui/base/clipboard/clipboard_test_template.h (right): https://codereview.chromium.org/1114213004/diff/80001/ui/base/clipboard/clipboard_test_template.h#newcode67 ui/base/clipboard/clipboard_test_template.h:67: bool AvailableTypesIsEmpty(ClipboardType type = CLIPBOARD_TYPE_COPY_PASTE) { Default arguments are ...
5 years, 5 months ago (2015-07-15 01:04:46 UTC) #3
dcheng
Also, note that the changes you made probably aren't getting tested. The clipboard unit tests ...
5 years, 5 months ago (2015-07-15 01:08:15 UTC) #4
Tobias Sargeant
On 2015/07/15 01:08:15, dcheng wrote: > Also, note that the changes you made probably aren't ...
5 years, 5 months ago (2015-07-15 14:04:00 UTC) #5
dcheng
lgtm with a nit https://codereview.chromium.org/1114213004/diff/80001/ui/base/clipboard/clipboard_test_template.h File ui/base/clipboard/clipboard_test_template.h (right): https://codereview.chromium.org/1114213004/diff/80001/ui/base/clipboard/clipboard_test_template.h#newcode310 ui/base/clipboard/clipboard_test_template.h:310: std::min(fragment_end, static_cast<uint32>(markup.size())), On 2015/07/15 at ...
5 years, 5 months ago (2015-07-16 06:10:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1114213004/140001
5 years, 5 months ago (2015-07-16 09:33:49 UTC) #9
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/79287)
5 years, 5 months ago (2015-07-16 09:42:09 UTC) #11
Tobias Sargeant
> As long as it passes the trybots. Interestingly, on linux it clearly doesn't. It ...
5 years, 5 months ago (2015-07-16 10:57:02 UTC) #12
dcheng
On 2015/07/16 at 10:57:02, tobiasjs wrote: > > As long as it passes the trybots. ...
5 years, 5 months ago (2015-07-17 04:09:43 UTC) #13
Tobias Sargeant
I've reverted now, but changed the preceding EXPECT_LE to ASSERT_LE so that if fragment_end isn't ...
5 years, 5 months ago (2015-07-21 15:06:35 UTC) #14
dcheng
On 2015/07/21 at 15:06:35, tobiasjs wrote: > I've reverted now, but changed the preceding EXPECT_LE ...
5 years, 5 months ago (2015-07-21 19:48:55 UTC) #15
Tobias Sargeant
On 2015/07/21 19:48:55, dcheng wrote: > On 2015/07/21 at 15:06:35, tobiasjs wrote: > > I've ...
5 years, 5 months ago (2015-07-22 10:49:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1114213004/180001
5 years, 5 months ago (2015-07-22 10:49:47 UTC) #19
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/80886)
5 years, 5 months ago (2015-07-22 10:59:17 UTC) #21
Tobias Sargeant
sky@ or sadrul@, sorry for the noise, but could one of you please take a ...
5 years, 5 months ago (2015-07-22 11:06:12 UTC) #23
sky
LGTM
5 years, 5 months ago (2015-07-22 15:20:11 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1114213004/180001
5 years, 5 months ago (2015-07-22 15:22:01 UTC) #26
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 5 months ago (2015-07-22 15:27:37 UTC) #27
commit-bot: I haz the power
5 years, 5 months ago (2015-07-22 15:28:41 UTC) #28
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/868100a8a0ffe3506b4adcf7b21e5e6c06fa84ce
Cr-Commit-Position: refs/heads/master@{#339879}

Powered by Google App Engine
This is Rietveld 408576698