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

Issue 1923653002: Wire up process launch error codes. (Closed)

Created:
4 years, 7 months ago by Will Harris
Modified:
4 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, rickyz+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Wire up process launch error codes. Return error code from StartSandboxedProcess. Pass error code through to metrics. BUG=526198 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win10_chromium_x64_rel_ng Committed: https://crrev.com/3adf87d1226c74d593205946ff499d9fcffa3dfc Cr-Commit-Position: refs/heads/master@{#391392}

Patch Set 1 #

Patch Set 2 : fix compile #

Patch Set 3 : wire more errors through #

Patch Set 4 : rebase #

Patch Set 5 : wire code through to consumers #

Patch Set 6 : fix mac #

Patch Set 7 : fix android #

Total comments: 4

Patch Set 8 : forward declare #

Patch Set 9 : fixes #

Patch Set 10 : fixes #

Patch Set 11 : rebase #

Total comments: 2

Patch Set 12 : code review comments #

Patch Set 13 : fix debug and clang #

Unified diffs Side-by-side diffs Delta from patch set Stats (+422 lines, -212 lines) Patch
M chrome/browser/chrome_select_file_dialog_factory_win.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/image_writer_utility_client.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/image_writer_private/image_writer_utility_client.cc View 1 2 3 4 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_credentials_getter_win.cc View 1 2 3 4 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/image_decoder.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/image_decoder.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/pdf_to_emf_converter.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/sandboxed_zip_analyzer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/service_utility_process_host.cc View 1 chunk +9 lines, -3 lines 0 comments Download
M components/metrics/stability_metrics_helper.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/nacl/broker/nacl_broker_listener.cc View 1 1 chunk +5 lines, -3 lines 0 comments Download
M content/browser/browser_child_process_host_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/child_process_launcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +28 lines, -3 lines 0 comments Download
M content/browser/child_process_launcher.cc View 1 2 3 4 5 6 10 chunks +22 lines, -10 lines 0 comments Download
M content/browser/child_process_launcher_browsertest.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_process_host.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/utility_process_host_impl.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/utility_process_host_impl.cc View 1 2 3 4 3 chunks +10 lines, -7 lines 0 comments Download
M content/common/sandbox_win.h View 1 2 3 2 chunks +10 lines, -7 lines 0 comments Download
M content/common/sandbox_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 17 chunks +95 lines, -64 lines 0 comments Download
M content/public/browser/browser_child_process_host_delegate.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/browser/render_process_host_observer.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/utility_process_host_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/common/sandbox_init.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M sandbox/win/src/broker_services.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -7 lines 0 comments Download
M sandbox/win/src/sandbox_policy_base.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M sandbox/win/src/sandbox_policy_base.cc View 1 2 3 3 chunks +29 lines, -21 lines 0 comments Download
M sandbox/win/src/sandbox_types.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +39 lines, -1 line 0 comments Download
M sandbox/win/src/target_process.h View 1 2 1 chunk +11 lines, -9 lines 0 comments Download
M sandbox/win/src/target_process.cc View 1 2 11 chunks +40 lines, -35 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 2 chunks +47 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
jam
https://codereview.chromium.org/1923653002/diff/120001/content/browser/child_process_launcher.h File content/browser/child_process_launcher.h (right): https://codereview.chromium.org/1923653002/diff/120001/content/browser/child_process_launcher.h#newcode29 content/browser/child_process_launcher.h:29: // For Windows, these are sandbox::ResultCode starting at offset ...
4 years, 7 months ago (2016-04-28 15:41:14 UTC) #4
Will Harris
I left the error_code as an int so it can consume both typedefs. PTAL https://codereview.chromium.org/1923653002/diff/120001/content/browser/child_process_launcher.h ...
4 years, 7 months ago (2016-05-02 16:45:24 UTC) #5
jam
lgtm
4 years, 7 months ago (2016-05-02 20:54:59 UTC) #6
Will Harris
asvitkine@ can you review histograms.xml and components/metrics please?
4 years, 7 months ago (2016-05-02 21:01:09 UTC) #8
Alexei Svitkine (slow)
lgtm % comment https://codereview.chromium.org/1923653002/diff/200001/sandbox/win/src/sandbox_types.h File sandbox/win/src/sandbox_types.h (left): https://codereview.chromium.org/1923653002/diff/200001/sandbox/win/src/sandbox_types.h#oldcode49 sandbox/win/src/sandbox_types.h:49: SBOX_ERROR_CREATE_PROCESS = 18, Nit: For a ...
4 years, 7 months ago (2016-05-03 17:06:57 UTC) #9
Will Harris
Thanks for review. https://codereview.chromium.org/1923653002/diff/200001/sandbox/win/src/sandbox_types.h File sandbox/win/src/sandbox_types.h (left): https://codereview.chromium.org/1923653002/diff/200001/sandbox/win/src/sandbox_types.h#oldcode49 sandbox/win/src/sandbox_types.h:49: SBOX_ERROR_CREATE_PROCESS = 18, On 2016/05/03 17:06:57, ...
4 years, 7 months ago (2016-05-03 17:26:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1923653002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1923653002/220001
4 years, 7 months ago (2016-05-03 17:27:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1923653002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1923653002/280001
4 years, 7 months ago (2016-05-03 21:04:26 UTC) #19
commit-bot: I haz the power
Committed patchset #13 (id:280001)
4 years, 7 months ago (2016-05-03 23:26:18 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 23:27:39 UTC) #23
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/3adf87d1226c74d593205946ff499d9fcffa3dfc
Cr-Commit-Position: refs/heads/master@{#391392}

Powered by Google App Engine
This is Rietveld 408576698