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

Issue 119633002: Close ExtensionPopup on tab switches; add test. (Closed)

Created:
7 years ago by msw
Modified:
7 years ago
Reviewers:
Jeffrey Yasskin, sky
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org, Matt Perry
Visibility:
Public.

Description

Close ExtensionPopup on tab switches; add test. Make ExtensionPopup a TabStripModelObserver. Close the ExtensionPopup's Widget on ActiveTabChanged. Add an interactive_ui_test for this behavior. BUG=303479 TEST=Extension popups close on switching tabs via CTRL+TAB, CTRL+1, CTRL+2, etc. R=sky@chromium.org,jyasskin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242170

Patch Set 1 : Close ExtensionPopup on tab switches; add test. #

Total comments: 2

Patch Set 2 : Remove unnecessary NULL checks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -1 line) Patch
M chrome/browser/extensions/api/extension_action/browser_action_interactive_test.cc View 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_popup.h View 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_popup.cc View 1 3 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
msw
Hey Scott and Jeffrey, please take a look; thanks! Scott: extension_popup.h|cc Jeffrey: browser_action_interactive_test.cc
7 years ago (2013-12-20 00:10:12 UTC) #1
sky
LGTM - but remove the tab_strip_model() checks. I suspect browser() isn't needed either, but you'll ...
7 years ago (2013-12-20 00:14:50 UTC) #2
Jeffrey Yasskin
lgtm
7 years ago (2013-12-20 00:30:57 UTC) #3
msw
Done; landing. https://codereview.chromium.org/119633002/diff/20001/chrome/browser/ui/views/extensions/extension_popup.cc File chrome/browser/ui/views/extensions/extension_popup.cc (right): https://codereview.chromium.org/119633002/diff/20001/chrome/browser/ui/views/extensions/extension_popup.cc#newcode100 chrome/browser/ui/views/extensions/extension_popup.cc:100: if (browser && browser->tab_strip_model()) On 2013/12/20 00:14:51, ...
7 years ago (2013-12-20 00:46:27 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/119633002/40001
7 years ago (2013-12-20 00:49:51 UTC) #5
James Cook
Extension popups should always have a browser_, so that part should be fine. Thanks for ...
7 years ago (2013-12-20 01:01:06 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=108404
7 years ago (2013-12-20 08:49:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/119633002/40001
7 years ago (2013-12-20 19:04:16 UTC) #8
commit-bot: I haz the power
7 years ago (2013-12-20 20:44:21 UTC) #9
Message was sent while issue was closed.
Change committed as 242170

Powered by Google App Engine
This is Rietveld 408576698