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

Issue 10388160: Only return the visible page actions from PageActionController. (Closed)

Created:
8 years, 7 months ago by not at google - send to devlin
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Avi (use Gerrit), mihaip-chromium-reviews_chromium.org, creis+watch_chromium.org, brettw-cc_chromium.org, Aaron Boodman, ajwong+watch_chromium.org, benwells, koz (OOO until 15th September)
Visibility:
Public.

Description

Relanding after reverted in 137632 (broke ASAN). Only return the visible page actions from PageActionController. This is a bit of a yak shave to support having the "action box" show active extensions on the current page rather than page actions. Previously, PageActionController was creating widgets for everything then LocationBarViewGtk was hiding them as necessary. This is assumes too much; we need to push the visibility logic into the Controller for the future. BUG=127988 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137630 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137638

Patch Set 1 #

Total comments: 13

Patch Set 2 : comments #

Patch Set 3 : Change ownership of extension stuff, revert change to extension_action_box #

Total comments: 1

Patch Set 4 : remove unnecessary forward declarations #

Patch Set 5 : fix use-after-free in observer list #

Patch Set 6 : actually fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -162 lines) Patch
M chrome/browser/extensions/action_box_controller.h View 5 3 chunks +8 lines, -18 lines 0 comments Download
A chrome/browser/extensions/action_box_controller.cc View 2 5 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/extensions/execute_code_in_tab_function.cc View 1 2 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_tab_helper.h View 1 2 3 4 5 7 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tab_helper.cc View 1 2 5 4 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/page_action_controller.h View 1 5 2 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/extensions/page_action_controller.cc View 1 5 2 chunks +39 lines, -14 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.h View 5 6 chunks +10 lines, -16 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 5 12 chunks +74 lines, -89 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.h View 1 2 3 5 3 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.cc View 1 2 3 4 5 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_action.h View 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
not at google - send to devlin
mpcomplete: extensions etc estade: gtk stuff https://chromiumcodereview.appspot.com/10388160/diff/1/chrome/browser/extensions/action_box_controller.h File chrome/browser/extensions/action_box_controller.h (left): https://chromiumcodereview.appspot.com/10388160/diff/1/chrome/browser/extensions/action_box_controller.h#oldcode21 chrome/browser/extensions/action_box_controller.h:21: // UI decoration ...
8 years, 7 months ago (2012-05-16 08:25:52 UTC) #1
not at google - send to devlin
avi, I was planning on TBR'ing you since it's so insignificant to TabContentsWrapper but you're ...
8 years, 7 months ago (2012-05-16 08:31:53 UTC) #2
Avi (use Gerrit)
tcw lgtm
8 years, 7 months ago (2012-05-16 14:37:35 UTC) #3
Evan Stade
gtk lgtm with nits http://codereview.chromium.org/10388160/diff/1/chrome/browser/ui/gtk/location_bar_view_gtk.cc File chrome/browser/ui/gtk/location_bar_view_gtk.cc (right): http://codereview.chromium.org/10388160/diff/1/chrome/browser/ui/gtk/location_bar_view_gtk.cc#newcode812 chrome/browser/ui/gtk/location_bar_view_gtk.cc:812: UpdatePageActions(); too much indent http://codereview.chromium.org/10388160/diff/1/chrome/browser/ui/gtk/location_bar_view_gtk.cc#newcode1603 ...
8 years, 7 months ago (2012-05-16 21:58:16 UTC) #4
Matt Perry
lgtm https://chromiumcodereview.appspot.com/10388160/diff/1/chrome/browser/extensions/action_box_controller.cc File chrome/browser/extensions/action_box_controller.cc (right): https://chromiumcodereview.appspot.com/10388160/diff/1/chrome/browser/extensions/action_box_controller.cc#newcode14 chrome/browser/extensions/action_box_controller.cc:14: std::vector<ExtensionAction*>* out) { std::set_union(actions.begin(), actions.end(), out->begin(), out->end(), std::back_inserter(*out)); ...
8 years, 7 months ago (2012-05-17 00:17:23 UTC) #5
not at google - send to devlin
http://codereview.chromium.org/10388160/diff/1/chrome/browser/extensions/action_box_controller.cc File chrome/browser/extensions/action_box_controller.cc (right): http://codereview.chromium.org/10388160/diff/1/chrome/browser/extensions/action_box_controller.cc#newcode14 chrome/browser/extensions/action_box_controller.cc:14: std::vector<ExtensionAction*>* out) { On 2012/05/17 00:17:24, Matt Perry wrote: ...
8 years, 7 months ago (2012-05-17 01:30:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10388160/10002
8 years, 7 months ago (2012-05-17 01:31:43 UTC) #7
commit-bot: I haz the power
Try job failure for 10388160-10002 (retry) (retry) on linux_rel for step "browser_tests". It's a second ...
8 years, 7 months ago (2012-05-17 03:12:46 UTC) #8
not at google - send to devlin
Made tests pass again, had to fix ownership issue by moving ScriptExecutor from TabContentsWrapper to ...
8 years, 7 months ago (2012-05-17 03:30:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10388160/12003
8 years, 7 months ago (2012-05-17 03:30:57 UTC) #10
commit-bot: I haz the power
Change committed as 137630
8 years, 7 months ago (2012-05-17 04:47:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10388160/3004
8 years, 7 months ago (2012-05-17 05:36:07 UTC) #12
commit-bot: I haz the power
8 years, 7 months ago (2012-05-17 06:56:50 UTC) #13
Change committed as 137638

Powered by Google App Engine
This is Rietveld 408576698