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

Issue 2307733003: WebShare: Fixed the API occasionally breaking on a particular page. (Closed)

Created:
4 years, 3 months ago by Matt Giuca
Modified:
4 years, 3 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, Sam McNally
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebShare: Fixed the API occasionally breaking on a particular page. On Android, the WebShare Mojo pipe would occasionally be closed due to the Java service dropping a callback without calling it. Now always calls the callback. Also partially fixes crbug.com/636274; previously the navigator.share promise would not be rejected if the user cancels the picker. Now it is rejected (though not immediately). This needs to be fixed better but at least the promise will (eventually) be resolved or rejected. BUG=640324, 636274 Committed: https://crrev.com/06be389804f232f4e992be8e95b24322a1062ebb Cr-Commit-Position: refs/heads/master@{#416862}

Patch Set 1 #

Patch Set 2 : Rename cleanup to cancel and add TODO. #

Total comments: 2

Patch Set 3 : Get rid of mTargetChosen. #

Patch Set 4 : Begrudgingly use American spelling for 'canceled'. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/share/ShareHelper.java View 1 2 3 chunks +18 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webshare/ShareServiceImpl.java View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Matt Giuca
4 years, 3 months ago (2016-09-02 06:51:43 UTC) #2
David Trainor- moved to gerrit
lgtm % comment https://codereview.chromium.org/2307733003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/share/ShareHelper.java File chrome/android/java/src/org/chromium/chrome/browser/share/ShareHelper.java (right): https://codereview.chromium.org/2307733003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/share/ShareHelper.java#newcode123 chrome/android/java/src/org/chromium/chrome/browser/share/ShareHelper.java:123: private boolean mTargetChosen = false; Do ...
4 years, 3 months ago (2016-09-02 18:16:49 UTC) #3
Matt Giuca
Done. Will wait for you to quickly inspect the new version. https://codereview.chromium.org/2307733003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/share/ShareHelper.java File chrome/android/java/src/org/chromium/chrome/browser/share/ShareHelper.java (right): ...
4 years, 3 months ago (2016-09-05 01:02:04 UTC) #4
David Trainor- moved to gerrit
lgtm!
4 years, 3 months ago (2016-09-07 05:13:07 UTC) #5
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/2307733003/60001
4 years, 3 months ago (2016-09-07 05:30:53 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-07 06:18:16 UTC) #8
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 06:20:18 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/06be389804f232f4e992be8e95b24322a1062ebb
Cr-Commit-Position: refs/heads/master@{#416862}

Powered by Google App Engine
This is Rietveld 408576698