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

Issue 2830163003: [merge-m59] Cater for the "double close" when clicking "Learn More" on auto-dismiss extension bubbl… (Closed)

Created:
3 years, 8 months ago by tapted
Modified:
3 years, 8 months ago
Reviewers:
tapted
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/branch-heads/3071
Project:
chromium
Visibility:
Public.

Description

[merge-m59] Cater for the "double close" when clicking "Learn More" on auto-dismiss extension bubbles. This fixes a regression from r459382 where clicking a "Learn More" link on the NTP override bubble can spew out tabs. The problem is that opening a tab may defocus the bubble, triggering a Close(). The extension bubble client must still call close since there's no guarantee that the defocus may trigger a close. To fix, Close() needs more awareness of whether it is closed via being deactivated by the user, via being deactivated by the delegate opening a link, or via being explicitly closed by LinkClicked(). Currently it only caters for two of these cases. We can more clearly capture the use case simply by ensuring the delegate is not notified multiple times by setting a flag. BUG=712545 NOTRY=true NOPRESUBMIT=true NOTREECHECKS=true TBR=tapted@chromium.org Review-Url: https://codereview.chromium.org/2827603005 Cr-Commit-Position: refs/heads/master@{#466228} (cherry picked from commit d7340b19e7dd13c8379174ad50ce2c8220637aa7) Review-Url: https://codereview.chromium.org/2830163003 Cr-Commit-Position: refs/branch-heads/3071@{#144} Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641} Committed: https://chromium.googlesource.com/chromium/src/+/9581bd5192d8ceef1d6d6a02652c990998cfbfd1

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -14 lines) Patch
M chrome/browser/ui/extensions/extension_message_bubble_browsertest.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/extensions/extension_message_bubble_browsertest.cc View 1 chunk +11 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_message_bubble_view_browsertest.cc View 3 chunks +22 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.cc View 3 chunks +19 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2830163003/1
3 years, 8 months ago (2017-04-22 10:23:09 UTC) #2
commit-bot: I haz the power
CLs for remote refs other than refs/heads/master must contain NOTRY=true and NOPRESUBMIT=true in order for ...
3 years, 8 months ago (2017-04-22 10:23:11 UTC) #4
tapted
3 years, 8 months ago (2017-04-22 10:24:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2830163003/1
3 years, 8 months ago (2017-04-22 10:24:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2830163003/1
3 years, 8 months ago (2017-04-22 10:30:15 UTC) #12
commit-bot: I haz the power
3 years, 8 months ago (2017-04-22 10:30:57 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/9581bd5192d8ceef1d6d6a02652c...

Powered by Google App Engine
This is Rietveld 408576698