extensions: Move ToolbarActionViewDelegateViews methods [chromium/src : main]

0 views
Skip to first unread message

Shuhei Takahashi (Gerrit)

unread,
Oct 17, 2025, 3:37:21 AM (12 days ago) Oct 17
to Shuhei Takahashi, Emilia Paz, Darryl James, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Darryl James and Emilia Paz

Shuhei Takahashi added 2 comments

File chrome/browser/ui/views/extensions/extensions_menu_button.cc
Line 57, Patchset 1 (Parent): return BrowserView::GetBrowserViewForBrowser(browser_)
->toolbar()
->GetExtensionsButton();
Shuhei Takahashi . unresolved

I assume this code was never executed because `GetReferenceButtonForPopup()` was called only for the toolbar action's delegate.

File chrome/browser/ui/views/extensions/extensions_toolbar_container.cc
Line 1106, Patchset 1 (Latest): return GetFocusManager();
Shuhei Takahashi . unresolved

I assume that `GetFocusManager()` returns the same instance within the same window.

Open in Gerrit

Related details

Attention is currently required from:
  • Darryl James
  • Emilia Paz
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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
Gerrit-Change-Number: 7052762
Gerrit-PatchSet: 1
Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
Gerrit-Attention: Darryl James <dlj...@chromium.org>
Gerrit-Attention: Emilia Paz <emil...@chromium.org>
Gerrit-Comment-Date: Fri, 17 Oct 2025 07:36:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Darryl James (Gerrit)

unread,
Oct 17, 2025, 1:21:03 PM (12 days ago) Oct 17
to Shuhei Takahashi, Emilia Paz, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Emilia Paz and Shuhei Takahashi

Darryl James voted and added 2 comments

Votes added by Darryl James

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Darryl James . resolved

lgtm

File chrome/browser/ui/views/extensions/extensions_toolbar_container.cc
Line 1106, Patchset 1 (Latest): return GetFocusManager();
Shuhei Takahashi . resolved

I assume that `GetFocusManager()` returns the same instance within the same window.

Darryl James

Yes! As long as the views are all parented to the same widget, `GetFocusManager()` will be the same 👍

Open in Gerrit

Related details

Attention is currently required from:
  • Emilia Paz
  • Shuhei Takahashi
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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
Gerrit-Change-Number: 7052762
Gerrit-PatchSet: 1
Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
Gerrit-Attention: Shuhei Takahashi <n...@chromium.org>
Gerrit-Attention: Emilia Paz <emil...@chromium.org>
Gerrit-Comment-Date: Fri, 17 Oct 2025 17:20:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Shuhei Takahashi <n...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Emilia Paz (Gerrit)

unread,
Oct 19, 2025, 5:57:09 PM (10 days ago) Oct 19
to Shuhei Takahashi, Darryl James, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Shuhei Takahashi

Emilia Paz voted and added 2 comments

Votes added by Emilia Paz

Code-Review+1

2 comments

Patchset-level comments
Emilia Paz . resolved

Thanks Shuhei!

File chrome/browser/ui/views/extensions/extensions_menu_button.cc
Line 57, Patchset 1 (Parent): return BrowserView::GetBrowserViewForBrowser(browser_)
->toolbar()
->GetExtensionsButton();
Shuhei Takahashi . unresolved

I assume this code was never executed because `GetReferenceButtonForPopup()` was called only for the toolbar action's delegate.

Emilia Paz

I would expect this to be triggered when extensions menu button is pressed and popup is triggered. Extensions menu button should be the delegate of the action view controller that is called when the action is executed: `ExtensionsMenuButton::ButtonPressed()` -> ` ExtensionActionViewController::ExecuteUserAction` -> ... -> `ExtensionActionPlatformDelegateViews::ShowPopup` -> `GetDelegateViews()->GetReferenceButtonForPopup()` where the delegate is the extensions menu button.

That being said, if this is called then the popup reference button would be the extensions button (puzzle piece) and not the action in the toolbar.. which is not what happens.
Code is so tangled that maybe somewhere else we are using the other controller. Thus, changing this to be in the container and always returning the toolbar action view as the popup reference button seems like a great improvement!

Tested the CL locally to make sure the popup is correctly anchored and button focused. Looks good!

Open in Gerrit

Related details

Attention is currently required from:
  • Shuhei Takahashi
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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
Gerrit-Change-Number: 7052762
Gerrit-PatchSet: 1
Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
Gerrit-Attention: Shuhei Takahashi <n...@chromium.org>
Gerrit-Comment-Date: Sun, 19 Oct 2025 21:56:58 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Shuhei Takahashi (Gerrit)

unread,
Oct 20, 2025, 8:20:59 PM (9 days ago) Oct 20
to Shuhei Takahashi, Emilia Paz, Darryl James, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Darryl James and Emilia Paz

Shuhei Takahashi voted and added 2 comments

Votes added by Shuhei Takahashi

Commit-Queue+1

2 comments

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Shuhei Takahashi . resolved

Thanks for reviews! I need your approval again as I lost CR+2 on rebasing.

File chrome/browser/ui/views/extensions/extensions_menu_button.cc
Line 57, Patchset 1 (Parent): return BrowserView::GetBrowserViewForBrowser(browser_)
->toolbar()
->GetExtensionsButton();
Shuhei Takahashi . resolved

I assume this code was never executed because `GetReferenceButtonForPopup()` was called only for the toolbar action's delegate.

Emilia Paz

I would expect this to be triggered when extensions menu button is pressed and popup is triggered. Extensions menu button should be the delegate of the action view controller that is called when the action is executed: `ExtensionsMenuButton::ButtonPressed()` -> ` ExtensionActionViewController::ExecuteUserAction` -> ... -> `ExtensionActionPlatformDelegateViews::ShowPopup` -> `GetDelegateViews()->GetReferenceButtonForPopup()` where the delegate is the extensions menu button.

That being said, if this is called then the popup reference button would be the extensions button (puzzle piece) and not the action in the toolbar.. which is not what happens.
Code is so tangled that maybe somewhere else we are using the other controller. Thus, changing this to be in the container and always returning the toolbar action view as the popup reference button seems like a great improvement!

Tested the CL locally to make sure the popup is correctly anchored and button focused. Looks good!

Shuhei Takahashi

Thanks for testing it! I'm glad this change is fine :)

Open in Gerrit

Related details

Attention is currently required from:
  • Darryl James
  • Emilia Paz
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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
Gerrit-Change-Number: 7052762
Gerrit-PatchSet: 3
Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
Gerrit-Attention: Darryl James <dlj...@chromium.org>
Gerrit-Attention: Emilia Paz <emil...@chromium.org>
Gerrit-Comment-Date: Tue, 21 Oct 2025 00:20:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Shuhei Takahashi <n...@chromium.org>
Comment-In-Reply-To: Emilia Paz <emil...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Darryl James (Gerrit)

unread,
Oct 21, 2025, 12:21:54 PM (8 days ago) Oct 21
to Shuhei Takahashi, Emilia Paz, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Emilia Paz and Shuhei Takahashi

Darryl James voted and added 1 comment

Votes added by Darryl James

Code-Review+1

1 comment

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Darryl James . resolved

lgtms

Open in Gerrit

Related details

Attention is currently required from:
  • Emilia Paz
  • Shuhei Takahashi
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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
Gerrit-Change-Number: 7052762
Gerrit-PatchSet: 5
Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
Gerrit-Attention: Shuhei Takahashi <n...@chromium.org>
Gerrit-Attention: Emilia Paz <emil...@chromium.org>
Gerrit-Comment-Date: Tue, 21 Oct 2025 16:21:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Emilia Paz (Gerrit)

unread,
Oct 21, 2025, 7:12:24 PM (8 days ago) Oct 21
to Shuhei Takahashi, Darryl James, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Shuhei Takahashi

Emilia Paz voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Shuhei Takahashi
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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
Gerrit-Change-Number: 7052762
Gerrit-PatchSet: 5
Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
Gerrit-Attention: Shuhei Takahashi <n...@chromium.org>
Gerrit-Comment-Date: Tue, 21 Oct 2025 23:12:15 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Emilia Paz (Gerrit)

unread,
Oct 21, 2025, 7:43:29 PM (8 days ago) Oct 21
to Shuhei Takahashi, Darryl James, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Shuhei Takahashi

Emilia Paz added 1 comment

File chrome/browser/ui/extensions/extensions_container.h
Line 101, Patchset 5 (Latest):
// Returns the FocusManager to use when registering accelerators.
virtual views::FocusManager* GetFocusManagerForAccelerator() = 0;

// Returns the reference button for the extension action's popup. Rather than
// relying on the button being a MenuButton, the button returned should have a
// MenuButtonController. This is part of the ongoing work from
// http://crbug.com/901183 to simplify the button hierarchy by migrating
// controller logic into a separate class leaving MenuButton as an empty class
// to be deprecated.
virtual views::BubbleAnchor GetReferenceButtonForPopup(
const extensions::ExtensionId& action_id) = 0;
Emilia Paz . unresolved

I should have caught the use of `views::View` here. This CL will depend on comment thread [here](https://chromium-review.googlesource.com/c/chromium/src/+/7064871/comments/35002115_8ecbf796)

Open in Gerrit

Related details

Attention is currently required from:
  • Shuhei Takahashi
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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
    Gerrit-Change-Number: 7052762
    Gerrit-PatchSet: 5
    Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
    Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
    Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
    Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
    Gerrit-Attention: Shuhei Takahashi <n...@chromium.org>
    Gerrit-Comment-Date: Tue, 21 Oct 2025 23:43:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Shuhei Takahashi (Gerrit)

    unread,
    Oct 22, 2025, 9:29:49 AM (7 days ago) Oct 22
    to Shuhei Takahashi, Emilia Paz, Darryl James, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
    Attention needed from Shuhei Takahashi

    Shuhei Takahashi added 1 comment

    File chrome/browser/ui/extensions/extensions_container.h
    Line 101, Patchset 5 (Latest):
    // Returns the FocusManager to use when registering accelerators.
    virtual views::FocusManager* GetFocusManagerForAccelerator() = 0;

    // Returns the reference button for the extension action's popup. Rather than
    // relying on the button being a MenuButton, the button returned should have a
    // MenuButtonController. This is part of the ongoing work from
    // http://crbug.com/901183 to simplify the button hierarchy by migrating
    // controller logic into a separate class leaving MenuButton as an empty class
    // to be deprecated.
    virtual views::BubbleAnchor GetReferenceButtonForPopup(
    const extensions::ExtensionId& action_id) = 0;
    Emilia Paz . unresolved

    I should have caught the use of `views::View` here. This CL will depend on comment thread [here](https://chromium-review.googlesource.com/c/chromium/src/+/7064871/comments/35002115_8ecbf796)

    Shuhei Takahashi

    Ack. I will put this on hold until we resolve the thread.

    Gerrit-Comment-Date: Wed, 22 Oct 2025 13:29:13 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Emilia Paz <emil...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Shuhei Takahashi (Gerrit)

    unread,
    Oct 26, 2025, 10:04:04 PM (3 days ago) Oct 26
    to Shuhei Takahashi, Emilia Paz, Darryl James, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

    Shuhei Takahashi added 1 comment

    File chrome/browser/ui/extensions/extensions_container.h
    Line 101, Patchset 5 (Latest):
    // Returns the FocusManager to use when registering accelerators.
    virtual views::FocusManager* GetFocusManagerForAccelerator() = 0;

    // Returns the reference button for the extension action's popup. Rather than
    // relying on the button being a MenuButton, the button returned should have a
    // MenuButtonController. This is part of the ongoing work from
    // http://crbug.com/901183 to simplify the button hierarchy by migrating
    // controller logic into a separate class leaving MenuButton as an empty class
    // to be deprecated.
    virtual views::BubbleAnchor GetReferenceButtonForPopup(
    const extensions::ExtensionId& action_id) = 0;
    Emilia Paz . resolved

    I should have caught the use of `views::View` here. This CL will depend on comment thread [here](https://chromium-review.googlesource.com/c/chromium/src/+/7064871/comments/35002115_8ecbf796)

    Shuhei Takahashi

    Ack. I will put this on hold until we resolve the thread.

    Shuhei Takahashi

    Resolved.

    Open in Gerrit

    Related details

    Attention set is empty
    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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
      Gerrit-Change-Number: 7052762
      Gerrit-PatchSet: 5
      Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
      Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
      Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
      Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
      Gerrit-Comment-Date: Mon, 27 Oct 2025 02:03:36 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      open
      diffy

      Shuhei Takahashi (Gerrit)

      unread,
      Oct 26, 2025, 10:06:26 PM (3 days ago) Oct 26
      to Shuhei Takahashi, Emilia Paz, Darryl James, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
      Attention needed from Emilia Paz

      Shuhei Takahashi added 1 comment

      File chrome/browser/ui/extensions/extensions_container.h
      Line 101, Patchset 5 (Latest):
      // Returns the FocusManager to use when registering accelerators.
      virtual views::FocusManager* GetFocusManagerForAccelerator() = 0;

      // Returns the reference button for the extension action's popup. Rather than
      // relying on the button being a MenuButton, the button returned should have a
      // MenuButtonController. This is part of the ongoing work from
      // http://crbug.com/901183 to simplify the button hierarchy by migrating
      // controller logic into a separate class leaving MenuButton as an empty class
      // to be deprecated.
      virtual views::BubbleAnchor GetReferenceButtonForPopup(
      const extensions::ExtensionId& action_id) = 0;
      Emilia Paz . unresolved

      I should have caught the use of `views::View` here. This CL will depend on comment thread [here](https://chromium-review.googlesource.com/c/chromium/src/+/7064871/comments/35002115_8ecbf796)

      Shuhei Takahashi

      Ack. I will put this on hold until we resolve the thread.

      Shuhei Takahashi

      Resolved.

      Shuhei Takahashi

      Will rebase on crrev.com/c/7064871 once I submit it. Marking this thread unresolved until then.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Emilia Paz
      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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
        Gerrit-Change-Number: 7052762
        Gerrit-PatchSet: 5
        Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
        Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
        Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
        Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
        Gerrit-Attention: Emilia Paz <emil...@chromium.org>
        Gerrit-Comment-Date: Mon, 27 Oct 2025 02:05:47 +0000
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Shuhei Takahashi (Gerrit)

        unread,
        Oct 27, 2025, 4:05:43 AM (2 days ago) Oct 27
        to Shuhei Takahashi, Emilia Paz, Darryl James, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
        Attention needed from Darryl James and Emilia Paz

        Shuhei Takahashi voted and added 2 comments

        Votes added by Shuhei Takahashi

        Commit-Queue+1

        2 comments

        Patchset-level comments
        File-level comment, Patchset 7 (Latest):
        Shuhei Takahashi . resolved

        Rebased on top of crrev.com/c/7064871 and I need your reviews again. Thanks!

        File chrome/browser/ui/extensions/extensions_container.h

        // Returns the FocusManager to use when registering accelerators.
        virtual views::FocusManager* GetFocusManagerForAccelerator() = 0;

        // Returns the reference button for the extension action's popup. Rather than
        // relying on the button being a MenuButton, the button returned should have a
        // MenuButtonController. This is part of the ongoing work from
        // http://crbug.com/901183 to simplify the button hierarchy by migrating
        // controller logic into a separate class leaving MenuButton as an empty class
        // to be deprecated.
        virtual views::BubbleAnchor GetReferenceButtonForPopup(
        const extensions::ExtensionId& action_id) = 0;
        Emilia Paz . resolved

        I should have caught the use of `views::View` here. This CL will depend on comment thread [here](https://chromium-review.googlesource.com/c/chromium/src/+/7064871/comments/35002115_8ecbf796)

        Shuhei Takahashi

        Ack. I will put this on hold until we resolve the thread.

        Shuhei Takahashi

        Resolved.

        Shuhei Takahashi

        Will rebase on crrev.com/c/7064871 once I submit it. Marking this thread unresolved until then.

        Shuhei Takahashi

        Rebased.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Darryl James
        • Emilia Paz
        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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
        Gerrit-Change-Number: 7052762
        Gerrit-PatchSet: 7
        Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
        Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
        Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
        Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
        Gerrit-Attention: Darryl James <dlj...@chromium.org>
        Gerrit-Attention: Emilia Paz <emil...@chromium.org>
        Gerrit-Comment-Date: Mon, 27 Oct 2025 08:05:21 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Darryl James (Gerrit)

        unread,
        Oct 27, 2025, 4:01:24 PM (2 days ago) Oct 27
        to Shuhei Takahashi, Emilia Paz, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
        Attention needed from Emilia Paz and Shuhei Takahashi

        Darryl James voted and added 1 comment

        Votes added by Darryl James

        Code-Review+1

        1 comment

        Patchset-level comments
        Darryl James . resolved

        slgtms

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Emilia Paz
        • Shuhei Takahashi
        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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
        Gerrit-Change-Number: 7052762
        Gerrit-PatchSet: 7
        Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
        Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
        Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
        Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
        Gerrit-Attention: Shuhei Takahashi <n...@chromium.org>
        Gerrit-Attention: Emilia Paz <emil...@chromium.org>
        Gerrit-Comment-Date: Mon, 27 Oct 2025 20:01:13 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Emilia Paz (Gerrit)

        unread,
        Oct 27, 2025, 4:46:38 PM (2 days ago) Oct 27
        to Shuhei Takahashi, Darryl James, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
        Attention needed from Shuhei Takahashi

        Emilia Paz voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Shuhei Takahashi
        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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
        Gerrit-Change-Number: 7052762
        Gerrit-PatchSet: 7
        Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
        Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
        Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
        Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
        Gerrit-Attention: Shuhei Takahashi <n...@chromium.org>
        Gerrit-Comment-Date: Mon, 27 Oct 2025 20:46:26 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Oct 27, 2025, 8:53:25 PM (2 days ago) Oct 27
        to Shuhei Takahashi, Emilia Paz, Darryl James, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        extensions: Move ToolbarActionViewDelegateViews methods

        This is a part of the patch series to move stateful UI logic from
        ExtensionActionViewController to ExtensionActionPlatformDelegate.

        This patch moves all methods in ToolbarActionViewDelegateViews to
        ExtensionsContainer, namely:

        - GetFocusManagerForAccelerator()
        - GetReferenceButtonForPopup()

        These methods were used only by ExtensionActionPlatformDelegateViews.
        Now they call into corresponding methods in ExtensionsContainer
        directly.

        This ends up leaving no methods in ToolbarActionViewDelegateViews.
        This interface will removed in the next patch.

        This is a pure refactor. No functional changes are expected.
        Bug: 448199168
        Change-Id: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
        Reviewed-by: Emilia Paz <emil...@chromium.org>
        Reviewed-by: Darryl James <dlj...@chromium.org>
        Commit-Queue: Shuhei Takahashi <n...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#1536365}
        Files:
        • M chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.cc
        • M chrome/browser/ui/views/extensions/extensions_container_views.h
        • M chrome/browser/ui/views/extensions/extensions_menu_button.cc
        • M chrome/browser/ui/views/extensions/extensions_menu_button.h
        • M chrome/browser/ui/views/extensions/extensions_menu_test_util.cc
        • M chrome/browser/ui/views/extensions/extensions_toolbar_container.cc
        • M chrome/browser/ui/views/extensions/extensions_toolbar_container.h
        • M chrome/browser/ui/views/toolbar/toolbar_action_view.cc
        • M chrome/browser/ui/views/toolbar/toolbar_action_view.h
        • M chrome/browser/ui/views/toolbar/toolbar_action_view_delegate_views.h
        • M chrome/browser/ui/webui_browser/webui_browser_extensions_container.cc
        • M chrome/browser/ui/webui_browser/webui_browser_extensions_container.h
        Change size: M
        Delta: 12 files changed, 64 insertions(+), 57 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Emilia Paz, +1 by Darryl James
        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: I6181fe3b45d87c949bfa911e39d36cc0408a40ff
        Gerrit-Change-Number: 7052762
        Gerrit-PatchSet: 8
        Gerrit-Owner: Shuhei Takahashi <n...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
        Gerrit-Reviewer: Emilia Paz <emil...@chromium.org>
        Gerrit-Reviewer: Shuhei Takahashi <n...@chromium.org>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages