[XDeviceSignin] Only suppress the promo if other mobile devices [chromium/src : main]

0 views
Skip to first unread message

Ryan Sultanem (Gerrit)

unread,
6:35 AM (4 hours ago) 6:35 AM
to Pâris Meuleman, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org
Attention needed from Pâris Meuleman

Ryan Sultanem voted and added 3 comments

Votes added by Ryan Sultanem

Code-Review+1

3 comments

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Ryan Sultanem . resolved

Thanks for the quick change!

This looks good to me, but I expect some additional tests to need some adaptation.

File chrome/browser/signin/cross_device_signin_promo_manager.h
Line 29, Patchset 6 (Latest): kHasOtherDevices = 2,
Ryan Sultanem . unresolved

I am wondering if we can reuse this - since this has never logged on Stable yet (and we plan on cherry picking this change), then we can probably just override it, without risking any data mix up (starting at Beta/Stable).

The only risk of doing so is if we are not able to cherry-pick for some reason. But I think it should be rather safe.

If you prefer not to do that, then I think we should at least deprecate this value, since it should not be used anymore, if I am not mistaken.

File chrome/browser/signin/cross_device_signin_promo_manager_unittest.cc
Line 184, Patchset 6 (Latest): syncer::DeviceInfo::OsType::kWindows);
Ryan Sultanem . unresolved

I will expect this test suite to now fail: https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc;l=349

Similarly: https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/views/profiles/profile_menu_view_ui_browsertest.cc;l=459

Not sure if it is worth it but we may consider factoring this into some test utils (definitely not for this CL anyway).

Open in Gerrit

Related details

Attention is currently required from:
  • Pâris Meuleman
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3cbbbb113053873ccfc0930112c69436f862915b
Gerrit-Change-Number: 8061087
Gerrit-PatchSet: 6
Gerrit-Owner: Pâris Meuleman <pmeu...@chromium.org>
Gerrit-Reviewer: Pâris Meuleman <pmeu...@chromium.org>
Gerrit-Reviewer: Ryan Sultanem <rs...@google.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Pâris Meuleman <pmeu...@chromium.org>
Gerrit-Comment-Date: Wed, 08 Jul 2026 10:34:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Pâris Meuleman (Gerrit)

unread,
9:24 AM (2 hours ago) 9:24 AM
to Ryan Sultanem, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org

Pâris Meuleman voted and added 3 comments

Votes added by Pâris Meuleman

Auto-Submit+1

3 comments

Patchset-level comments
File-level comment, Patchset 8 (Latest):
Pâris Meuleman . resolved

fixed, I'll wait for the CQ and then ask for another review

File chrome/browser/signin/cross_device_signin_promo_manager.h
Line 29, Patchset 6: kHasOtherDevices = 2,
Ryan Sultanem . resolved

I am wondering if we can reuse this - since this has never logged on Stable yet (and we plan on cherry picking this change), then we can probably just override it, without risking any data mix up (starting at Beta/Stable).

The only risk of doing so is if we are not able to cherry-pick for some reason. But I think it should be rather safe.

If you prefer not to do that, then I think we should at least deprecate this value, since it should not be used anymore, if I am not mistaken.

Pâris Meuleman

I was wondering about that too, I'll revert to using the existing enum. renamed instead of new entry.

File chrome/browser/signin/cross_device_signin_promo_manager_unittest.cc
Line 184, Patchset 6: syncer::DeviceInfo::OsType::kWindows);
Ryan Sultanem . resolved

I will expect this test suite to now fail: https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc;l=349

Similarly: https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/views/profiles/profile_menu_view_ui_browsertest.cc;l=459

Not sure if it is worth it but we may consider factoring this into some test utils (definitely not for this CL anyway).

Pâris Meuleman

Done

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3cbbbb113053873ccfc0930112c69436f862915b
Gerrit-Change-Number: 8061087
Gerrit-PatchSet: 8
Gerrit-Owner: Pâris Meuleman <pmeu...@chromium.org>
Gerrit-Reviewer: Pâris Meuleman <pmeu...@chromium.org>
Gerrit-Reviewer: Ryan Sultanem <rs...@google.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Comment-Date: Wed, 08 Jul 2026 13:24:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Ryan Sultanem <rs...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Ryan Sultanem (Gerrit)

unread,
9:41 AM (1 hour ago) 9:41 AM
to Pâris Meuleman, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org
Attention needed from Pâris Meuleman

Ryan Sultanem voted and added 1 comment

Votes added by Ryan Sultanem

Code-Review+1
Commit-Queue+2

1 comment

Patchset-level comments
Ryan Sultanem . resolved

LGTM, thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Pâris Meuleman
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3cbbbb113053873ccfc0930112c69436f862915b
Gerrit-Change-Number: 8061087
Gerrit-PatchSet: 8
Gerrit-Owner: Pâris Meuleman <pmeu...@chromium.org>
Gerrit-Reviewer: Pâris Meuleman <pmeu...@chromium.org>
Gerrit-Reviewer: Ryan Sultanem <rs...@google.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Pâris Meuleman <pmeu...@chromium.org>
Gerrit-Comment-Date: Wed, 08 Jul 2026 13:41:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
9:51 AM (1 hour ago) 9:51 AM
to Pâris Meuleman, Ryan Sultanem, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
[XDeviceSignin] Only suppress the promo if other mobile devices

Change from suppressing the promos when any other device was present to
suppress only when a phone is present.
Fixed: 532406911
Change-Id: I3cbbbb113053873ccfc0930112c69436f862915b
Auto-Submit: Pâris Meuleman <pmeu...@chromium.org>
Reviewed-by: Ryan Sultanem <rs...@google.com>
Commit-Queue: Pâris Meuleman <pmeu...@chromium.org>
Commit-Queue: Ryan Sultanem <rs...@google.com>
Cr-Commit-Position: refs/heads/main@{#1658705}
Files:
  • M chrome/browser/signin/cross_device_signin_promo_manager.cc
  • M chrome/browser/signin/cross_device_signin_promo_manager.h
  • M chrome/browser/signin/cross_device_signin_promo_manager_unittest.cc
  • M chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc
  • M chrome/browser/ui/views/profiles/profile_menu_view_ui_browsertest.cc
  • M tools/metrics/histograms/enums.xml
Change size: M
Delta: 6 files changed, 47 insertions(+), 19 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Ryan Sultanem
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3cbbbb113053873ccfc0930112c69436f862915b
Gerrit-Change-Number: 8061087
Gerrit-PatchSet: 9
Gerrit-Owner: Pâris Meuleman <pmeu...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Pâris Meuleman <pmeu...@chromium.org>
Gerrit-Reviewer: Ryan Sultanem <rs...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages