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

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

Created:
4 years, 6 months ago by Devlin
Modified:
4 years, 6 months ago
Reviewers:
Robert Sesek, Finnur
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
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 Committed: https://crrev.com/af64c8cb4de48a580b04fe266e6f6a0c4c14e4d1 Cr-Commit-Position: refs/heads/master@{#400849}

Patch Set 1 : woot #

Total comments: 6

Patch Set 2 : Finnur's #

Patch Set 3 : Fix win tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -60 lines) Patch
M chrome/browser/extensions/extension_message_bubble_controller.h View 1 4 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_message_bubble_controller.cc View 1 5 chunks +30 lines, -10 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 5 chunks +11 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 +21 lines, -4 lines 0 comments Download
M chrome/browser/ui/extensions/extension_message_bubble_browsertest.cc View 1 2 10 chunks +57 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 5 chunks +14 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
Devlin
Finnur, mind taking a look? I'm not entirely sold on this solution, but our bubble ...
4 years, 6 months ago (2016-06-18 02:16:21 UTC) #5
Finnur
Yeah, I don't have much, just a few comments and nits, so LGTM. https://codereview.chromium.org/2076093004/diff/60001/chrome/browser/extensions/extension_message_bubble_controller.cc File ...
4 years, 6 months ago (2016-06-20 10:39:00 UTC) #6
Devlin
https://codereview.chromium.org/2076093004/diff/60001/chrome/browser/extensions/extension_message_bubble_controller.cc File chrome/browser/extensions/extension_message_bubble_controller.cc (right): https://codereview.chromium.org/2076093004/diff/60001/chrome/browser/extensions/extension_message_bubble_controller.cc#newcode259 chrome/browser/extensions/extension_message_bubble_controller.cc:259: did_highlight_ = false; On 2016/06/20 10:39:00, Finnur wrote: > ...
4 years, 6 months ago (2016-06-20 17:58:39 UTC) #7
Devlin
Robert, mind taking a look at c/b/ui/cocoa?
4 years, 6 months ago (2016-06-20 17:59:10 UTC) #9
Robert Sesek
cocoa/ LGTM
4 years, 6 months ago (2016-06-20 21:11:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2076093004/80001
4 years, 6 months ago (2016-06-20 21:36:44 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/241952)
4 years, 6 months ago (2016-06-20 22:38:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2076093004/100001
4 years, 6 months ago (2016-06-20 23:47:13 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 6 months ago (2016-06-21 00:20:56 UTC) #19
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 00:25:41 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/af64c8cb4de48a580b04fe266e6f6a0c4c14e4d1
Cr-Commit-Position: refs/heads/master@{#400849}

Powered by Google App Engine
This is Rietveld 408576698