Skip to content

Commit

Permalink
Update browser/ui/views/split_view/split_view_menu_bubble.cc
Browse files Browse the repository at this point in the history
Updated comments.

Co-authored-by: Jay Harris <[email protected]>
  • Loading branch information
simonhong and fallaciousreasoning authored Jan 15, 2025
1 parent d7a7704 commit 0874be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser/ui/views/split_view/split_view_menu_bubble.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ SplitViewMenuBubble::SplitViewMenuBubble(Browser* browser, views::View* anchor)
return base::BindRepeating(
[](Browser* browser, int command_id, const ui::Event& event) {
chrome::ExecuteCommand(browser, command_id);
// Some platform steals this bubble's focus and make it closed
// implicitely. But some doesn't. So, do close explicitely.
// Some platforms steal this bubble's focus closing
// implicitly but some don't, so we need to close it explicitly.
if (g_bubble) {
g_bubble->GetWidget()->Close();
}
Expand Down

0 comments on commit 0874be0

Please sign in to comment.