New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 893769 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit 25 days ago
Closed: Oct 18
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug


Participants' hotlists:
Better-Together-Launch-Blockers


Sign in to add a comment

Make MagicTether backwards compatible

Project Member Reported by jlklein@chromium.org, Oct 9

Issue description

We are about to turn on the multidevice flags in 71 by default. In the current state, if we do that, any users whose phones either haven't gotten the GmsCore apk or flag rollout, or haven't had their phones do a CryptAuth enrollment *after* that rollout will be stuck with both of these features broken and no way to re-enable them.

Note that this is only likely to affect dev and beta users since the rollout should be done by the time 71 ramps up on stable. However, my main concern with this issue is the noise that user feedback will create from this breaking change and the triaging burden we'll incur in needing to look at every report to determine whether the user is stuck in this state. If we can avoid that problem altogether, I'd like to try.

I'm going to investigate.
 
Status: Started (was: Unconfirmed)
Josh is taking the easyunlock side of this while I work on the Tethering half. Josh, I've uploaded my WIP CL here: https://chromium-review.googlesource.com/c/chromium/src/+/1277272. I just need to fix a few more tests :-).
Project Member

Comment 3 by bugdroid1@chromium.org, Oct 12

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1c6c9d1b3bb70322ae10fb4be29a5adfb5cfa587

commit 1c6c9d1b3bb70322ae10fb4be29a5adfb5cfa587
Author: Jeremy Klein <jlklein@google.com>
Date: Fri Oct 12 01:26:45 2018

Make Instant Tethering work with legacy hosts before hosts update.

The phone side flags and enrollment will be slower than the ChromeOS
rollout. In order to avoid breaking Instant Tethering in the meantime,
look for cases where:

1) There are no host devices reporting BETTER_TOGETHER_HOST support.
2) There is at least one host device reporting INSTANT_TETHER_HOST
support.

In this scenario, the only possiblity is that this host device has not
reenrolled yet after receiving the new flags.

Bug:  893769 
Change-Id: Ib7fd0acdbe80903a499dd0dd42fd60365304371d
Reviewed-on: https://chromium-review.googlesource.com/c/1277272
Commit-Queue: Jeremy Klein <jlklein@chromium.org>
Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#599058}
[modify] https://crrev.com/1c6c9d1b3bb70322ae10fb4be29a5adfb5cfa587/chrome/browser/chromeos/tether/tether_service.cc
[modify] https://crrev.com/1c6c9d1b3bb70322ae10fb4be29a5adfb5cfa587/chrome/browser/chromeos/tether/tether_service_unittest.cc
[modify] https://crrev.com/1c6c9d1b3bb70322ae10fb4be29a5adfb5cfa587/chromeos/components/tether/tether_host_fetcher_impl.cc
[modify] https://crrev.com/1c6c9d1b3bb70322ae10fb4be29a5adfb5cfa587/chromeos/components/tether/tether_host_fetcher_impl.h
[modify] https://crrev.com/1c6c9d1b3bb70322ae10fb4be29a5adfb5cfa587/chromeos/components/tether/tether_host_fetcher_impl_unittest.cc

Project Member

Comment 4 by bugdroid1@chromium.org, Oct 12

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/53926116c29a39fac23b9e6c94394ef428dfc904

commit 53926116c29a39fac23b9e6c94394ef428dfc904
Author: Jeremy Klein <jlklein@chromium.org>
Date: Fri Oct 12 14:46:50 2018

Revert "Make Instant Tethering work with legacy hosts before hosts update."

This reverts commit 1c6c9d1b3bb70322ae10fb4be29a5adfb5cfa587.

Reason for revert: Breaks tests when combined with https://chromium-review.googlesource.com/c/chromium/src/+/1260491. Doesn't properly wait for devicesync service to be ready before querying the list of devices.

Original change's description:
> Make Instant Tethering work with legacy hosts before hosts update.
> 
> The phone side flags and enrollment will be slower than the ChromeOS
> rollout. In order to avoid breaking Instant Tethering in the meantime,
> look for cases where:
> 
> 1) There are no host devices reporting BETTER_TOGETHER_HOST support.
> 2) There is at least one host device reporting INSTANT_TETHER_HOST
> support.
> 
> In this scenario, the only possiblity is that this host device has not
> reenrolled yet after receiving the new flags.
> 
> Bug:  893769 
> Change-Id: Ib7fd0acdbe80903a499dd0dd42fd60365304371d
> Reviewed-on: https://chromium-review.googlesource.com/c/1277272
> Commit-Queue: Jeremy Klein <jlklein@chromium.org>
> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#599058}

TBR=khorimoto@chromium.org,jlklein@chromium.org

Change-Id: Iee7a71e551e875764f38cdf72391378cdacc80bc
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug:  893769 
Reviewed-on: https://chromium-review.googlesource.com/c/1278541
Reviewed-by: Jeremy Klein <jlklein@chromium.org>
Commit-Queue: Jeremy Klein <jlklein@chromium.org>
Cr-Commit-Position: refs/heads/master@{#599208}
[modify] https://crrev.com/53926116c29a39fac23b9e6c94394ef428dfc904/chrome/browser/chromeos/tether/tether_service.cc
[modify] https://crrev.com/53926116c29a39fac23b9e6c94394ef428dfc904/chrome/browser/chromeos/tether/tether_service_unittest.cc
[modify] https://crrev.com/53926116c29a39fac23b9e6c94394ef428dfc904/chromeos/components/tether/tether_host_fetcher_impl.cc
[modify] https://crrev.com/53926116c29a39fac23b9e6c94394ef428dfc904/chromeos/components/tether/tether_host_fetcher_impl.h
[modify] https://crrev.com/53926116c29a39fac23b9e6c94394ef428dfc904/chromeos/components/tether/tether_host_fetcher_impl_unittest.cc

Labels: -Pri-2 Pri-1
Summary: Make MagicTether backwards compatible (was: Make SmartLock and MagicTether backwards compatible)
Project Member

Comment 7 by bugdroid1@chromium.org, Oct 16

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/30d5a4ef08748d8639b8fe00eb2fef8c00023256

commit 30d5a4ef08748d8639b8fe00eb2fef8c00023256
Author: Jeremy Klein <jlklein@google.com>
Date: Tue Oct 16 19:19:44 2018

Reland "Make Instant Tethering work with legacy hosts before hosts update."

This is a reland of 1c6c9d1b3bb70322ae10fb4be29a5adfb5cfa587

Now correctly waiting for DeviceSyncClient to be ready.

Original change's description:
> Make Instant Tethering work with legacy hosts before hosts update.
>
> The phone side flags and enrollment will be slower than the ChromeOS
> rollout. In order to avoid breaking Instant Tethering in the meantime,
> look for cases where:
>
> 1) There are no host devices reporting BETTER_TOGETHER_HOST support.
> 2) There is at least one host device reporting INSTANT_TETHER_HOST
> support.
>
> In this scenario, the only possiblity is that this host device has not
> reenrolled yet after receiving the new flags.
>
> Bug:  893769 
> Change-Id: Ib7fd0acdbe80903a499dd0dd42fd60365304371d
> Reviewed-on: https://chromium-review.googlesource.com/c/1277272
> Commit-Queue: Jeremy Klein <jlklein@chromium.org>
> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#599058}

Bug:  893769 
Change-Id: I89aff002fe1235f08aa690ef7f8374aa4100e858
Reviewed-on: https://chromium-review.googlesource.com/c/1278542
Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Jeremy Klein <jlklein@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600074}
[modify] https://crrev.com/30d5a4ef08748d8639b8fe00eb2fef8c00023256/chrome/browser/chromeos/tether/tether_service.cc
[modify] https://crrev.com/30d5a4ef08748d8639b8fe00eb2fef8c00023256/chrome/browser/chromeos/tether/tether_service_unittest.cc
[modify] https://crrev.com/30d5a4ef08748d8639b8fe00eb2fef8c00023256/chromeos/components/tether/tether_host_fetcher_impl.cc
[modify] https://crrev.com/30d5a4ef08748d8639b8fe00eb2fef8c00023256/chromeos/components/tether/tether_host_fetcher_impl.h
[modify] https://crrev.com/30d5a4ef08748d8639b8fe00eb2fef8c00023256/chromeos/components/tether/tether_host_fetcher_impl_unittest.cc

Cc: kbleicher@chromium.org
Labels: Merge-Request-71
Project Member

Comment 9 by sheriffbot@chromium.org, Oct 17

Labels: -Merge-Request-71 Hotlist-Merge-Review Merge-Review-71
This bug requires manual review: Reverts referenced in bugdroid comments after merge request.
Please contact the milestone owner if you have questions.
Owners: benmason@(Android), kariahda@(iOS), kbleicher@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: kbleicher@google.com
Has this been thoroughly tested?  Not seeing comments re: verifying the fix....
Hey Kevin - yep I manually verified this fix by testing Magic Tether both with and without a phone that supports our new flow, as well as an account with both a legacy device and new device. Everything seems to be working correctly.
Labels: -Merge-Review-71 Merge-Approved-71
Approving merge to M71 Chrome OS.

Status: Fixed (was: Started)
Project Member

Comment 15 by bugdroid1@chromium.org, Oct 18

Labels: -merge-approved-71 merge-merged-3578
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/29857a7608b9ccde3d298f0b2f2e6ec261d423ca

commit 29857a7608b9ccde3d298f0b2f2e6ec261d423ca
Author: Kyle Horimoto <khorimoto@google.com>
Date: Thu Oct 18 18:51:45 2018

Reland "Make Instant Tethering work with legacy hosts before hosts update."

This is a reland of 1c6c9d1b3bb70322ae10fb4be29a5adfb5cfa587

Now correctly waiting for DeviceSyncClient to be ready.

Original change's description:
> Make Instant Tethering work with legacy hosts before hosts update.
>
> The phone side flags and enrollment will be slower than the ChromeOS
> rollout. In order to avoid breaking Instant Tethering in the meantime,
> look for cases where:
>
> 1) There are no host devices reporting BETTER_TOGETHER_HOST support.
> 2) There is at least one host device reporting INSTANT_TETHER_HOST
> support.
>
> In this scenario, the only possiblity is that this host device has not
> reenrolled yet after receiving the new flags.
>
> Bug:  893769 
> Change-Id: Ib7fd0acdbe80903a499dd0dd42fd60365304371d
> Reviewed-on: https://chromium-review.googlesource.com/c/1277272
> Commit-Queue: Jeremy Klein <jlklein@chromium.org>
> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#599058}

TBR=jlklein@google.com

(cherry picked from commit 30d5a4ef08748d8639b8fe00eb2fef8c00023256)

Bug:  893769 
Change-Id: I89aff002fe1235f08aa690ef7f8374aa4100e858
Reviewed-on: https://chromium-review.googlesource.com/c/1278542
Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Jeremy Klein <jlklein@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#600074}
Reviewed-on: https://chromium-review.googlesource.com/c/1289301
Cr-Commit-Position: refs/branch-heads/3578@{#130}
Cr-Branched-From: 4226ddf99103e493d7afb23a4c7902ee496108b6-refs/heads/master@{#599034}
[modify] https://crrev.com/29857a7608b9ccde3d298f0b2f2e6ec261d423ca/chrome/browser/chromeos/tether/tether_service.cc
[modify] https://crrev.com/29857a7608b9ccde3d298f0b2f2e6ec261d423ca/chrome/browser/chromeos/tether/tether_service_unittest.cc
[modify] https://crrev.com/29857a7608b9ccde3d298f0b2f2e6ec261d423ca/chromeos/components/tether/tether_host_fetcher_impl.cc
[modify] https://crrev.com/29857a7608b9ccde3d298f0b2f2e6ec261d423ca/chromeos/components/tether/tether_host_fetcher_impl.h
[modify] https://crrev.com/29857a7608b9ccde3d298f0b2f2e6ec261d423ca/chromeos/components/tether/tether_host_fetcher_impl_unittest.cc

Labels: Merge-Merged-71-3578
The following revision refers to this bug: 
https://chromium.googlesource.com/chromium/src.git/+/29857a7608b9ccde3d298f0b2f2e6ec261d423ca

Commit: 29857a7608b9ccde3d298f0b2f2e6ec261d423ca
Author: khorimoto@google.com
Commiter: khorimoto@chromium.org
Date: 2018-10-18 18:51:45 +0000 UTC

Reland "Make Instant Tethering work with legacy hosts before hosts update."

This is a reland of 1c6c9d1b3bb70322ae10fb4be29a5adfb5cfa587

Now correctly waiting for DeviceSyncClient to be ready.

Original change's description:
> Make Instant Tethering work with legacy hosts before hosts update.
>
> The phone side flags and enrollment will be slower than the ChromeOS
> rollout. In order to avoid breaking Instant Tethering in the meantime,
> look for cases where:
>
> 1) There are no host devices reporting BETTER_TOGETHER_HOST support.
> 2) There is at least one host device reporting INSTANT_TETHER_HOST
> support.
>
> In this scenario, the only possiblity is that this host device has not
> reenrolled yet after receiving the new flags.
>
> Bug:  893769 
> Change-Id: Ib7fd0acdbe80903a499dd0dd42fd60365304371d
> Reviewed-on: https://chromium-review.googlesource.com/c/1277272
> Commit-Queue: Jeremy Klein <jlklein@chromium.org>
> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#599058}

TBR=jlklein@google.com

(cherry picked from commit 30d5a4ef08748d8639b8fe00eb2fef8c00023256)

Bug:  893769 
Change-Id: I89aff002fe1235f08aa690ef7f8374aa4100e858
Reviewed-on: https://chromium-review.googlesource.com/c/1278542
Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Jeremy Klein <jlklein@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#600074}
Reviewed-on: https://chromium-review.googlesource.com/c/1289301
Cr-Commit-Position: refs/branch-heads/3578@{#130}
Cr-Branched-From: 4226ddf99103e493d7afb23a4c7902ee496108b6-refs/heads/master@{#599034}
Labels: Hotlist-ConOps

Sign in to add a comment