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

Issue 2719493003: Add PhysicalWebBroadcastService (Closed)

Created:
3 years, 10 months ago by iankc
Modified:
3 years, 9 months ago
Reviewers:
nyquist, cco3, mattreynolds
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add PhysicalWebBroadcastService This change creates the skeleton for the PhysicalWebBroadcastService, which will be the service that handles the Physical Web Sharing Feature. Here is a background to what the Service will do: This background service will start when the user activates the Physical Web Sharing item in the sharing chooser intent. If the URL received from the triggering Tab is validated by the Physical Web Service then it will encode the URL into an Eddystone URL and broadcast the URL through BLE. To notify and provide the user with the ability to terminate broadcasting a persistent notification with a cancel button will be created. This cancel button will stop the service and will be the only way for the user to stop the service. If the user terminates Chrome or the OS shuts down this service mid-broadcasting, when the service get's restarted it will restart broadcasting as well by gathering the URL from shared preferences. This will create a seemless experience to the user by behaving as though broadcasting is not connected to the Chrome application. BUG=685856 Review-Url: https://codereview.chromium.org/2719493003 Cr-Commit-Position: refs/heads/master@{#455211} Committed: https://chromium.googlesource.com/chromium/src/+/f2ef57e81267138c5f8fabc2ea7044b59600238a

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fixing nits #

Total comments: 1

Patch Set 3 : Making Change for Previous land of ShareActivity #

Total comments: 6

Patch Set 4 : Always Stopping Self #

Total comments: 1

Patch Set 5 : Adding TODO #

Patch Set 6 : rebasing with master #

Total comments: 25

Patch Set 7 : Improving Comments #

Total comments: 16

Patch Set 8 : Tommys Nits 1 #

Patch Set 9 : Updating Commit Message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -1 line) Patch
M chrome/android/java/AndroidManifest.xml View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java View 1 2 3 4 5 6 7 8 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java View 1 2 3 4 5 6 2 chunks +13 lines, -1 line 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
iankc
This is just the entry for the PhysicalWebBroadcastService. Getting this template in would help a ...
3 years, 10 months ago (2017-02-25 00:01:11 UTC) #2
cco3
https://codereview.chromium.org/2719493003/diff/1/chrome/android/java/AndroidManifest.xml File chrome/android/java/AndroidManifest.xml (right): https://codereview.chromium.org/2719493003/diff/1/chrome/android/java/AndroidManifest.xml#newcode650 chrome/android/java/AndroidManifest.xml:650: <!-- Service for PhysicalWebBroadcasting --> for Broadcasting a Physical ...
3 years, 10 months ago (2017-02-25 00:09:26 UTC) #3
iankc
Because Ted doesn't see the need for the abstract class now, there is a little ...
3 years, 9 months ago (2017-03-02 18:53:31 UTC) #4
cco3
https://codereview.chromium.org/2719493003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java File chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java (right): https://codereview.chromium.org/2719493003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java#newcode65 chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java:65: protected ChromeActivity getTriggeringActivity() { Since we don't have an ...
3 years, 9 months ago (2017-03-02 19:01:08 UTC) #5
cco3
On 2017/03/02 19:01:08, cco3 wrote: > https://codereview.chromium.org/2719493003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java > File > chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java > (right): > > ...
3 years, 9 months ago (2017-03-02 19:07:03 UTC) #6
iankc
The ShareActivity Landed so here is the updated PhysicalWebShareActivity that launches the PhysicalWebBroadcastService. This should ...
3 years, 9 months ago (2017-03-02 23:21:40 UTC) #7
cco3
https://codereview.chromium.org/2719493003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java File chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java (right): https://codereview.chromium.org/2719493003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java#newcode30 chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java:30: return START_STICKY; go ahead and stopself() here and leave ...
3 years, 9 months ago (2017-03-02 23:46:08 UTC) #8
iankc
Now it immediately turns off the service. https://codereview.chromium.org/2719493003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java File chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java (right): https://codereview.chromium.org/2719493003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java#newcode30 chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java:30: return START_STICKY; ...
3 years, 9 months ago (2017-03-02 23:51:06 UTC) #9
cco3
https://codereview.chromium.org/2719493003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java File chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java (right): https://codereview.chromium.org/2719493003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java#newcode30 chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java:30: stopSelf(); Add a TODO
3 years, 9 months ago (2017-03-02 23:52:15 UTC) #10
iankc
added todo.
3 years, 9 months ago (2017-03-02 23:57:40 UTC) #11
cco3
lgtm
3 years, 9 months ago (2017-03-03 00:01:00 UTC) #12
iankc
Hey Tommy, Here is a change that adds the PhysicalWebBroadcastService to the PhysicalWeb Sharing Feature. ...
3 years, 9 months ago (2017-03-03 00:17:11 UTC) #14
nyquist
https://codereview.chromium.org/2719493003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java File chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java (right): https://codereview.chromium.org/2719493003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java#newcode16 chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java:16: // bluetooth.le.AdvertiseCallback and bluetooth.BluetoothAdapter require API level 21. Why ...
3 years, 9 months ago (2017-03-06 22:34:14 UTC) #15
iankc
Hey Tommy, I hope the JavaDocs can clear things up. The prototype behaves in the ...
3 years, 9 months ago (2017-03-07 02:10:40 UTC) #16
nyquist
I think now you have some more meat you could put into the CL description ...
3 years, 9 months ago (2017-03-07 06:58:34 UTC) #17
iankc
This change creates the skeleton for the PhysicalWebBroadcastService, which will be the service that handles ...
3 years, 9 months ago (2017-03-07 18:03:08 UTC) #18
nyquist
lgtm. thanks!
3 years, 9 months ago (2017-03-07 18:10:28 UTC) #20
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/2719493003/160001
3 years, 9 months ago (2017-03-07 18:12:07 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 20:54:37 UTC) #26
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/f2ef57e81267138c5f8fabc2ea70...

Powered by Google App Engine
This is Rietveld 408576698