Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2646)

Issue 2105393002: [Extensions UI] Handle multiple warning bubbles racing to show (Closed)

Created:
4 years, 5 months ago by Devlin
Modified:
4 years, 5 months ago
Reviewers:
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@2743
Target Ref:
refs/pending/branch-heads/2743
Project:
chromium
Visibility:
Public.

Description

[Extensions UI] Handle multiple warning bubbles racing to show If multiple windows all tried to create a warning bubble at the same time, it would be handled incorrectly. Though only one bubble would show, the others would be destructed and potentially undo the work the first did (like highlighting extensions on the toolbar). Instead, link the warning bubbles with the toolbar model, which is per- profile and handles the highlighting logic. Also add a regression test, and beef up some existing tests. BUG=620434 Review-Url: https://codereview.chromium.org/2076093004 Cr-Commit-Position: refs/heads/master@{#400849} (cherry picked from commit af64c8cb4de48a580b04fe266e6f6a0c4c14e4d1) [Extensions UI] Fix a crash when clicking on a bubble's learn more Clicking on a bubble's learn more link causes a tab to open, which in turn causes the bubble to be cleaned up (as part of losing focus to the new tab). Fix the order so that we clean up before opening the new tab and add a regression test. Also add end-to-end tests for clicking on the action and dismiss buttons. BUG=622117 Review-Url: https://codereview.chromium.org/2086193002 Cr-Commit-Position: refs/heads/master@{#401412} (cherry picked from commit bb826f1bd289d9147c4e0b630831b0ab6ae81afd) TBR=avi@chromium.org TBR=finnur@chromium.org Manual Merge Note: Merging the fix for crbug.com/620434 along with the fix for the crash related to that patch. Committed: https://chromium.googlesource.com/chromium/src/+/182a245e61779ac581e91c5ddb6841fb76595f01

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+397 lines, -61 lines) Patch
M chrome/browser/extensions/extension_message_bubble_controller.h View 4 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_message_bubble_controller.cc View 6 chunks +34 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_message_bubble_controller_unittest.cc View 21 chunks +21 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_message_bubble_browsertest_mac.mm View 8 chunks +65 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/extension_message_bubble_browsertest.h View 2 chunks +33 lines, -4 lines 0 comments Download
M chrome/browser/ui/extensions/extension_message_bubble_browsertest.cc View 11 chunks +118 lines, -13 lines 0 comments Download
M chrome/browser/ui/extensions/settings_api_bubble_helpers.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_bar.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_bar.cc View 3 chunks +8 lines, -12 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_model.h View 4 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_model.cc View 3 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_message_bubble_view_browsertest.cc View 7 chunks +60 lines, -7 lines 0 comments Download

Messages

Total messages: 3 (2 generated)
Devlin
4 years, 5 months ago (2016-06-29 17:18:01 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
182a245e61779ac581e91c5ddb6841fb76595f01 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698