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

Issue 246037: Integrate browser actions with the wrench menu. Browser actions (Closed)

Created:
11 years, 2 months ago by Aaron Boodman
Modified:
9 years, 6 months ago
Reviewers:
Finnur
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Integrate browser actions with the wrench menu. Browser actions always show up in a submenu of the wrench menu, and if they have an icon, they also show up in the toolbar area. BUG=23380, 22883 TEST=Added new automated tests for the command handling, but we need to test that the menu items show up manually. To do that, run with no extension installed, you should see "extensions" in the wrench menu. Add an extension that adds a browser action, you should now see an "extensions" submenu with "manage extensions" and the browser action(s) in the submenu. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=27599

Patch Set 1 #

Patch Set 2 : Add a comment to toolbar_view.cc #

Total comments: 21

Patch Set 3 : Add a few tests #

Total comments: 2

Patch Set 4 : alphabetize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -26 lines) Patch
M chrome/app/chrome_dll_resource.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/browser.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browser.cc View 1 2 8 chunks +50 lines, -0 lines 0 comments Download
A chrome/browser/extensions/browser_action_test.cc View 3 1 chunk +67 lines, -0 lines 0 comments Download
M chrome/browser/views/browser_actions_container.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/views/browser_actions_container.cc View 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/views/toolbar_view.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/views/toolbar_view.cc View 1 2 3 chunks +37 lines, -3 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 chunk +20 lines, -15 lines 0 comments Download
M chrome/common/page_action.h View 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/common/page_action.cc View 1 chunk +7 lines, -1 line 0 comments Download
A chrome/test/data/extensions/samples/make_page_red/background.html View 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/samples/make_page_red/icon.png View Binary file 0 comments Download
A chrome/test/data/extensions/samples/make_page_red/manifest.json View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/samples/make_page_red_no_icon/background.html View 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/samples/make_page_red_no_icon/manifest.json View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Aaron Boodman
11 years, 2 months ago (2009-09-29 22:59:34 UTC) #1
Finnur
Overall, looks good. Some questions and comments below. One general question: Should we add a ...
11 years, 2 months ago (2009-09-29 23:58:38 UTC) #2
Aaron Boodman
Okie, responded to all comments, plus added two browser tests. http://codereview.chromium.org/246037/diff/2001/3002 File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/246037/diff/2001/3002#newcode760 ...
11 years, 2 months ago (2009-09-30 02:50:37 UTC) #3
Finnur
You might want to add a TEST= line, even just to call attention to the ...
11 years, 2 months ago (2009-09-30 03:10:49 UTC) #4
Aaron Boodman
On 2009/09/30 03:10:49, Finnur wrote: > You might want to add a TEST= line, even ...
11 years, 2 months ago (2009-09-30 03:29:04 UTC) #5
Finnur
11 years, 2 months ago (2009-09-30 04:02:20 UTC) #6
OK, LG.

On 2009/09/30 03:29:04, Aaron Boodman wrote:
> On 2009/09/30 03:10:49, Finnur wrote:
> > You might want to add a TEST= line, even just to call attention to the fact
> that
> > you added automated tests for this (thanks for that, btw).
> 
> Good point. Done.
> 
> > http://codereview.chromium.org/246037/diff/4002/7006
> > File chrome/browser/extensions/browser_action_test.cc (right):
> > 
> > http://codereview.chromium.org/246037/diff/4002/7006#newcode7
> > Line 7: #include "chrome/browser/profile.h"
> > nit: This is not in the right alphabetical order.
> 
> Done.
> 
> > http://codereview.chromium.org/246037/diff/4002/7006#newcode33
> > Line 33: &result);
> > I worry what happens to this test when this fails. It will hang the browser
> for
> > a while, no? Why not send false when the bgColor is not red?
> 
> The test needs to wait for the page to turn red since the code to do the check
> runs before the code that changes the color (because the extension is in
another
> process). I prefer to do tests that have to wait like this without any timeout
> to avoid flakiness. It is better (IMO) that a failure shows up as a timeout
> after 5 minutes or whatever, rather than having a flakey test because the
> in-code timeout was too tight.

Powered by Google App Engine
This is Rietveld 408576698