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

Issue 437503004: Add NaCl support to app_shell (Closed)

Created:
6 years, 4 months ago by James Cook
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Add NaCl support to app_shell Perform NaCl initialization during app_shell's startup path similar to how Chrome initializes it. * Refactor some of the lazy background page impulse code into ProcessManager so it can be shared with Chrome BUG=400577 TEST=manual tests of app_shell, existing ProcessManager unit tests and browser tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290082

Patch Set 1 #

Patch Set 2 : (nacl-init) compiles and links #

Patch Set 3 : (nacl-init) works now #

Patch Set 4 : (nacl-init) more cleanup #

Patch Set 5 : (nacl-init) fix paths #

Patch Set 6 : (nacl-init) rebase #

Total comments: 20

Patch Set 7 : (nacl-init) review comments part 1 #

Patch Set 8 : (nacl-init) move constants to components/nacl #

Patch Set 9 : (nacl-init) cleanup #

Total comments: 6

Patch Set 10 : (nacl-init) review comments 2 #

Patch Set 11 : (nacl-init) rebase #

Total comments: 2

Patch Set 12 : SFI comment #

Patch Set 13 : (nacl-init) rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+594 lines, -101 lines) Patch
M chrome/browser/extensions/plugin_manager.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/nacl_host/nacl_browser_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -32 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/plugins/plugin_prefs.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/common/chrome_content_client.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -20 lines 0 comments Download
M chrome/common/chrome_content_client_constants.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/renderer/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +9 lines, -5 lines 0 comments Download
M components/nacl.gyp View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
A components/nacl/common/nacl_constants.h View 1 2 3 4 5 6 7 1 chunk +25 lines, -0 lines 0 comments Download
A components/nacl/common/nacl_constants.cc View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M extensions/browser/process_manager.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/browser/process_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +27 lines, -0 lines 0 comments Download
M extensions/shell/app/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/app/shell_main_delegate.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/shell/app/shell_main_delegate.cc View 1 2 4 chunks +19 lines, -0 lines 0 comments Download
M extensions/shell/app_shell.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +14 lines, -0 lines 0 comments Download
M extensions/shell/browser/DEPS View 1 2 5 6 7 8 9 10 11 12 2 chunks +5 lines, -1 line 0 comments Download
M extensions/shell/browser/shell_browser_main_parts.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +17 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_content_browser_client.h View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +62 lines, -7 lines 0 comments Download
A + extensions/shell/browser/shell_nacl_browser_delegate.h View 1 2 2 chunks +20 lines, -21 lines 0 comments Download
A extensions/shell/browser/shell_nacl_browser_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +189 lines, -0 lines 0 comments Download
A extensions/shell/common/DEPS View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/shell/common/shell_content_client.h View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M extensions/shell/common/shell_content_client.cc View 1 2 3 4 5 6 7 2 chunks +54 lines, -0 lines 0 comments Download
M extensions/shell/renderer/DEPS View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M extensions/shell/renderer/shell_content_renderer_client.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M extensions/shell/renderer/shell_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 4 chunks +52 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
James Cook
teravest@, PTAL Let me know what I should refactor/split into other changes. Thanks!
6 years, 4 months ago (2014-08-11 21:51:48 UTC) #1
teravest
https://codereview.chromium.org/437503004/diff/140001/extensions/shell/app_shell.gyp File extensions/shell/app_shell.gyp (right): https://codereview.chromium.org/437503004/diff/140001/extensions/shell/app_shell.gyp#newcode127 extensions/shell/app_shell.gyp:127: 'browser/shell_nacl_browser_delegate.cc', It looks like these were accidentally pasted twice. ...
6 years, 4 months ago (2014-08-12 15:48:32 UTC) #2
James Cook
teravest, please take another look I upload the move of the constants in a separate ...
6 years, 4 months ago (2014-08-12 18:17:06 UTC) #3
teravest
lgtm https://codereview.chromium.org/437503004/diff/200001/chrome/common/chrome_content_client.cc File chrome/common/chrome_content_client.cc (right): https://codereview.chromium.org/437503004/diff/200001/chrome/common/chrome_content_client.cc#newcode188 chrome/common/chrome_content_client.cc:188: nacl.permissions = ppapi::PERMISSION_PRIVATE | ppapi::PERMISSION_DEV; On 2014/08/12 18:17:06, ...
6 years, 4 months ago (2014-08-12 19:57:12 UTC) #4
James Cook
rockot, PTAL at: chrome/browser/extensions/plugin_manager.cc chrome/browser/nacl_host/nacl_browser_delegate_impl.cc extensions/browser/process_manager.h extensions/browser/process_manager.cc https://codereview.chromium.org/437503004/diff/200001/extensions/shell/browser/shell_nacl_browser_delegate.cc File extensions/shell/browser/shell_nacl_browser_delegate.cc (right): https://codereview.chromium.org/437503004/diff/200001/extensions/shell/browser/shell_nacl_browser_delegate.cc#newcode139 extensions/shell/browser/shell_nacl_browser_delegate.cc:139: bool ShellNaClBrowserDelegate::MapUrlToLocalFilePath( ...
6 years, 4 months ago (2014-08-12 20:20:45 UTC) #5
Ken Rockot(use gerrit already)
On 2014/08/12 20:20:45, James Cook wrote: > rockot, PTAL at: > > chrome/browser/extensions/plugin_manager.cc > chrome/browser/nacl_host/nacl_browser_delegate_impl.cc ...
6 years, 4 months ago (2014-08-13 00:37:46 UTC) #6
James Cook
sehr, can I get OWNERS for adding dependencies from src/extensions/shell to src/components/nacl? This is the ...
6 years, 4 months ago (2014-08-13 16:27:33 UTC) #7
James Cook
derat, can I get OWNERS for adding dependency from src/extensions/shell/browser to cros_system_api? This dep isn't ...
6 years, 4 months ago (2014-08-13 16:41:22 UTC) #8
Daniel Erat
sure, gltm
6 years, 4 months ago (2014-08-13 16:45:47 UTC) #9
Daniel Erat
lgtm </yoda>
6 years, 4 months ago (2014-08-13 16:45:59 UTC) #10
sky
Said files LGTM
6 years, 4 months ago (2014-08-13 16:52:08 UTC) #11
James Cook
mseaborn, can I get OWNERS for adding dependencies from src/extensions/shell to src/components/nacl? extensions/shell contains the ...
6 years, 4 months ago (2014-08-14 20:23:12 UTC) #12
Mark Seaborn
On 2014/08/14 20:23:12, James Cook wrote: > mseaborn, can I get OWNERS for adding dependencies ...
6 years, 4 months ago (2014-08-14 21:00:35 UTC) #13
James Cook
mseaborn, PTAL Yes, I plan to test the NaCl startup code via app_shell_browsertests -- I'll ...
6 years, 4 months ago (2014-08-14 21:53:40 UTC) #14
James Cook
mseaborn, friendly ping?
6 years, 4 months ago (2014-08-15 20:21:19 UTC) #15
Mark Seaborn
On 2014/08/14 21:53:40, James Cook wrote: > mseaborn, PTAL > > Yes, I plan to ...
6 years, 4 months ago (2014-08-15 20:44:23 UTC) #16
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 4 months ago (2014-08-15 21:53:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/437503004/320001
6 years, 4 months ago (2014-08-15 21:55:35 UTC) #18
commit-bot: I haz the power
6 years, 4 months ago (2014-08-16 01:38:17 UTC) #19
Message was sent while issue was closed.
Committed patchset #13 (320001) as 290082

Powered by Google App Engine
This is Rietveld 408576698