|
|
Created:
4 years, 3 months ago by Matt Giuca Modified:
4 years, 2 months ago Reviewers:
David Trainor- moved to gerrit CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionShareHelper: Call onCancel when dismissed, in Kit Kat and earlier.
Previously, with the pre-Lollipop picker, onCancel was never called. Now
it is called immediately upon dismissing the dialog. In post-Lollipop,
there is still an ongoing issue where onCancel is not called immediately
upon closing the picker (it waits until the next share action); see
crbug.com/636274.
BUG=646247, 636274
Committed: https://crrev.com/2a9911b41a53319b9b60a3624c8df34171315a53
Cr-Commit-Position: refs/heads/master@{#421151}
Patch Set 1 #Patch Set 2 : Rebase. #Patch Set 3 : Rebase. #Patch Set 4 : Rebase. #
Dependent Patchsets: Messages
Total messages: 24 (12 generated)
mgiuca@chromium.org changed reviewers: + dtrainor@chromium.org
Hi David, If you can think of a better or more natural way to have a mutable local variable available inside the closure (than a singleton array), let me know. I thought about creating a MutableBoolean or MutableValue class but it seemed like overkill.
On 2016/09/13 05:09:12, Matt Giuca wrote: > Hi David, > > If you can think of a better or more natural way to have a mutable local > variable available inside the closure (than a singleton array), let me know. I > thought about creating a MutableBoolean or MutableValue class but it seemed like > overkill. We've used AtomicBoolean a lot, which does roughly what you're suggesting :). wdyt?
On 2016/09/14 17:12:26, David Trainor wrote: > On 2016/09/13 05:09:12, Matt Giuca wrote: > > Hi David, > > > > If you can think of a better or more natural way to have a mutable local > > variable available inside the closure (than a singleton array), let me know. I > > thought about creating a MutableBoolean or MutableValue class but it seemed > like > > overkill. > > We've used AtomicBoolean a lot, which does roughly what you're suggesting :). > wdyt? Hmm. That seems like it would work but I'm not sure what the ramifications are... I mean the AtomicBoolean documentation says things like "cannot be used as a replacement for a Boolean", and "Atomic classes are not general purpose replacements for java.lang.Integer and related classes". I can do it if you want, but it seems like a weird fit.
Hi, friendly ping?
The CQ bit was checked by mgiuca@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
yeah that's fair. This is roughly the same thing anyway :). lgtm
The CQ bit was checked by mgiuca@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by mgiuca@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by mgiuca@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dtrainor@chromium.org Link to the patchset: https://codereview.chromium.org/2338683002/#ps60001 (title: "Rebase.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== ShareHelper: Call onCancel when dismissed, in Kit Kat and earlier. Previously, with the pre-Lollipop picker, onCancel was never called. Now it is called immediately upon dismissing the dialog. In post-Lollipop, there is still an ongoing issue where onCancel is not called immediately upon closing the picker (it waits until the next share action); see crbug.com/636274. BUG=646247,636274 ========== to ========== ShareHelper: Call onCancel when dismissed, in Kit Kat and earlier. Previously, with the pre-Lollipop picker, onCancel was never called. Now it is called immediately upon dismissing the dialog. In post-Lollipop, there is still an ongoing issue where onCancel is not called immediately upon closing the picker (it waits until the next share action); see crbug.com/636274. BUG=646247,636274 Committed: https://crrev.com/2a9911b41a53319b9b60a3624c8df34171315a53 Cr-Commit-Position: refs/heads/master@{#421151} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/2a9911b41a53319b9b60a3624c8df34171315a53 Cr-Commit-Position: refs/heads/master@{#421151} |