Fix Extension Request Access Button going underneath the extensions icon [chromium/src : main]

0 views
Skip to first unread message

Jason Jiang (Gerrit)

unread,
6:00 PM (3 hours ago) 6:00 PM
to Eva Su, David Yeung, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from David Yeung and Eva Su

Jason Jiang added 4 comments

Commit Message
Line 6, Patchset 3:
David Yeung . resolved

Write a title before the description

Jason Jiang

Done

Line 10, Patchset 3:
David Yeung . resolved

Add a link to the screencast with the solution

Jason Jiang

Done

File chrome/browser/ui/views/extensions/extensions_request_access_button.cc
Line 168, Patchset 3: sibling_observation_.Observe(extensions_button);
David Yeung . unresolved

Do we need RemovedFromWidget -> sibling_observation_.Reset();?

Jason Jiang

Yes, just added it in the newest push

Line 182, Patchset 3: int clip_width = std::max(0, extensions_button->x() - x());
David Yeung . unresolved

Do we need to flip for RTL?

Jason Jiang

No need to flip for RTL as the math below this flips it correctly

Open in Gerrit

Related details

Attention is currently required from:
  • David Yeung
  • Eva Su
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I75a6c673428e6d77fcbc6ba3e6639c8708afec36
Gerrit-Change-Number: 7986073
Gerrit-PatchSet: 8
Gerrit-Owner: Jason Jiang <jason...@google.com>
Gerrit-Reviewer: David Yeung <day...@chromium.org>
Gerrit-Reviewer: Eva Su <ev...@chromium.org>
Gerrit-Reviewer: Jason Jiang <jason...@google.com>
Gerrit-Attention: David Yeung <day...@chromium.org>
Gerrit-Attention: Eva Su <ev...@chromium.org>
Gerrit-Comment-Date: Thu, 25 Jun 2026 21:59:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: David Yeung <day...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

David Yeung (Gerrit)

unread,
7:37 PM (2 hours ago) 7:37 PM
to Jason Jiang, Eva Su, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Eva Su and Jason Jiang

David Yeung added 3 comments

Commit Message
Line 19, Patchset 8 (Latest):Recording: https://screencast.googleplex.com/cast/NjU3ODg3OTM2Mjc2MDcwNHxkYTgyNTMxZS00Ng
David Yeung . unresolved

nit. Move this up in the description and have Bug and Change-id with no new line spacing.

ie
```

...
Previously the Allow #? was clipping behind the extensions icon, causing
a weird visual.

Recording:
https://screencast.googleplex.com/cast/NjU3ODg3OTM2Mjc2MDcwNHxkYTgyNTMxZS00Ng

Bug:395627283
Change-Id: I75a6c673428e6d77fcbc6ba3e6639c8708afec36
```

File chrome/browser/ui/views/extensions/extensions_request_access_button.cc
Line 168, Patchset 3: sibling_observation_.Observe(extensions_button);
David Yeung . unresolved

Do we need RemovedFromWidget -> sibling_observation_.Reset();?

Jason Jiang

Yes, just added it in the newest push

David Yeung

Which patchset has this change? I was expecting something like

```
ExtensionsRequestAccessButton::RemovedFromWidget() { sibling_observation_.Reset() };
```

Line 182, Patchset 3: int clip_width = std::max(0, extensions_button->x() - x());
David Yeung . unresolved

Do we need to flip for RTL?

Jason Jiang

No need to flip for RTL as the math below this flips it correctly

David Yeung

clip_width would be 0 if the x coordinate is flipped for RTL. On line 198, clip_rect uses clip_width in both cases to specify the width.

Open in Gerrit

Related details

Attention is currently required from:
  • Eva Su
  • Jason Jiang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I75a6c673428e6d77fcbc6ba3e6639c8708afec36
Gerrit-Change-Number: 7986073
Gerrit-PatchSet: 8
Gerrit-Owner: Jason Jiang <jason...@google.com>
Gerrit-Reviewer: David Yeung <day...@chromium.org>
Gerrit-Reviewer: Eva Su <ev...@chromium.org>
Gerrit-Reviewer: Jason Jiang <jason...@google.com>
Gerrit-Attention: Jason Jiang <jason...@google.com>
Gerrit-Attention: Eva Su <ev...@chromium.org>
Gerrit-Comment-Date: Thu, 25 Jun 2026 23:37:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Jason Jiang <jason...@google.com>
Comment-In-Reply-To: David Yeung <day...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Jason Jiang (Gerrit)

unread,
7:41 PM (2 hours ago) 7:41 PM
to Eva Su, David Yeung, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from David Yeung and Eva Su

Jason Jiang added 3 comments

nit. Move this up in the description and have Bug and Change-id with no new line spacing.

ie
```

...
Previously the Allow #? was clipping behind the extensions icon, causing
a weird visual.

Recording:
https://screencast.googleplex.com/cast/NjU3ODg3OTM2Mjc2MDcwNHxkYTgyNTMxZS00Ng

Bug:395627283
Change-Id: I75a6c673428e6d77fcbc6ba3e6639c8708afec36
```

Jason Jiang

Done

File chrome/browser/ui/views/extensions/extensions_request_access_button.cc
Line 168, Patchset 3: sibling_observation_.Observe(extensions_button);
David Yeung . unresolved

Do we need RemovedFromWidget -> sibling_observation_.Reset();?

Jason Jiang

Yes, just added it in the newest push

David Yeung

Which patchset has this change? I was expecting something like

```
ExtensionsRequestAccessButton::RemovedFromWidget() { sibling_observation_.Reset() };
```

Jason Jiang

It's reset in OnViewIsDeleting.

Line 182, Patchset 3: int clip_width = std::max(0, extensions_button->x() - x());
David Yeung . unresolved

Do we need to flip for RTL?

Jason Jiang

No need to flip for RTL as the math below this flips it correctly

David Yeung

clip_width would be 0 if the x coordinate is flipped for RTL. On line 198, clip_rect uses clip_width in both cases to specify the width.

Jason Jiang

hmmm I see, let me run a few tests on this and see thank you!

Open in Gerrit

Related details

Attention is currently required from:
  • David Yeung
  • Eva Su
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I75a6c673428e6d77fcbc6ba3e6639c8708afec36
Gerrit-Change-Number: 7986073
Gerrit-PatchSet: 9
Gerrit-Owner: Jason Jiang <jason...@google.com>
Gerrit-Reviewer: David Yeung <day...@chromium.org>
Gerrit-Reviewer: Eva Su <ev...@chromium.org>
Gerrit-Reviewer: Jason Jiang <jason...@google.com>
Gerrit-Attention: David Yeung <day...@chromium.org>
Gerrit-Attention: Eva Su <ev...@chromium.org>
Gerrit-Comment-Date: Thu, 25 Jun 2026 23:41:13 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages