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

Issue 5758002: Make HelpApp component extension. (Closed)

Created:
10 years ago by Dmitry Polukhin
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, arv (Not doing code reviews), ben+cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Make HelpApp component extension. BUG=http://code.google.com/p/chromium-os/issues/detail?id=6923 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72473

Patch Set 1 #

Total comments: 2

Patch Set 2 : comments resolved #

Total comments: 5

Patch Set 3 : update id #

Patch Set 4 : Use char type that works for all platforms #

Patch Set 5 : update manifest #

Patch Set 6 : remove browser_actions #

Patch Set 7 : Disable HelpApp in tests #

Total comments: 7

Patch Set 8 : minor comments resolved #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -13 lines) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/defaults.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/defaults.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 2 chunks +27 lines, -12 lines 0 comments Download
A chrome/browser/resources/help_app/manifest.json View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/browser_actions_container.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Aaron Boodman
You can use any string for the key. We tend to use public keys just ...
10 years ago (2010-12-10 18:38:22 UTC) #1
Dmitry Polukhin
PTAL http://codereview.chromium.org/5758002/diff/1/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): http://codereview.chromium.org/5758002/diff/1/chrome/browser/profiles/profile_impl.cc#newcode416 chrome/browser/profiles/profile_impl.cc:416: FilePath path("/usr/share/chromeos-assets/helpapp"); On 2010/12/10 18:38:22, Aaron Boodman wrote: ...
10 years ago (2010-12-13 16:17:33 UTC) #2
Aaron Boodman
http://codereview.chromium.org/5758002/diff/3001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): http://codereview.chromium.org/5758002/diff/3001/chrome/browser/profiles/profile_impl.cc#newcode404 chrome/browser/profiles/profile_impl.cc:404: if (!path.IsAbsolute()) { Why this change? It seems if ...
10 years ago (2010-12-13 16:29:43 UTC) #3
Dmitry Polukhin
http://codereview.chromium.org/5758002/diff/3001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): http://codereview.chromium.org/5758002/diff/3001/chrome/browser/profiles/profile_impl.cc#newcode404 chrome/browser/profiles/profile_impl.cc:404: if (!path.IsAbsolute()) { On 2010/12/13 16:29:43, Aaron Boodman wrote: ...
10 years ago (2010-12-13 19:52:38 UTC) #4
Aaron Boodman
lgtm http://codereview.chromium.org/5758002/diff/3001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): http://codereview.chromium.org/5758002/diff/3001/chrome/browser/profiles/profile_impl.cc#newcode404 chrome/browser/profiles/profile_impl.cc:404: if (!path.IsAbsolute()) { On 2010/12/13 19:52:38, Dmitry Polukhin ...
10 years ago (2010-12-13 20:06:43 UTC) #5
Dmitry Polukhin
FYI, had to change char type for paths to make it work for all platforms ...
10 years ago (2010-12-14 13:25:11 UTC) #6
Dmitry Polukhin
Chrome tests don't like new component extensions that are running in background. 15 tests count ...
10 years ago (2010-12-14 15:14:12 UTC) #7
Dmitry Polukhin
Aaron, please take another look to this CL. I have to change more files because ...
9 years, 11 months ago (2011-01-24 12:42:46 UTC) #8
Aaron Boodman
If you decide to implement Extension::ShowConfigureContextMenus() in this change, please send back to me for ...
9 years, 11 months ago (2011-01-24 19:45:58 UTC) #9
Dmitry Polukhin
9 years, 11 months ago (2011-01-25 07:23:20 UTC) #10
Thank you for review!

http://codereview.chromium.org/5758002/diff/26001/chrome/browser/browser_reso...
File chrome/browser/browser_resources.grd (right):

http://codereview.chromium.org/5758002/diff/26001/chrome/browser/browser_reso...
chrome/browser/browser_resources.grd:104: <include name="IDR_HELP_MANIFEST"
file="resources\help_app\manifest.json" flattenhtml="true" type="BINDATA" />
On 2011/01/24 19:45:58, Aaron Boodman wrote:
> I don't think you want flattenhtml="true" here.

Done.

http://codereview.chromium.org/5758002/diff/26001/chrome/browser/defaults.h
File chrome/browser/defaults.h (right):

http://codereview.chromium.org/5758002/diff/26001/chrome/browser/defaults.h#n...
chrome/browser/defaults.h:87: // Are HelpApp enabled? True by default. Has sense
only for Chrome OS now.
On 2011/01/24 19:45:58, Aaron Boodman wrote:
> Whether HelpApp is enabled. True by default. This is only used by Chrome OS
> today.

Done.

http://codereview.chromium.org/5758002/diff/26001/chrome/browser/ui/views/bro...
File chrome/browser/ui/views/browser_actions_container.cc (right):

http://codereview.chromium.org/5758002/diff/26001/chrome/browser/ui/views/bro...
chrome/browser/ui/views/browser_actions_container.cc:256: if
(extension()->location() == Extension::COMPONENT)
On 2011/01/24 19:45:58, Aaron Boodman wrote:
> I could see 'options' making sense, but I think this is a good change for now.

Yes, options would make sense for some component extensions. But HelpApp has no
options at the moment. Showing whole menu with only 1 active item looks odd. It
needs to be revised somehow for component extensions.

> What about page actions? They will have the same problem.

I didn't make it. Also the same changes need to be done for Win,Linux,Mac - now
I did it only for Chrome OS.

> How about adding a method to Extension like ::ShowConfigureContextMenus() and
> checking that for both page and browser actions.
> 
> You can do this in a separate change if you are worried about not being able
to
> get it done in time for your branch point.

I like this idea and will send separate CL with such changes.

Powered by Google App Engine
This is Rietveld 408576698