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

Issue 1387963006: Adding error handlers to setup.exe (Closed)

Created:
5 years, 2 months ago by Patrick Monette
Modified:
5 years, 2 months ago
CC:
chromium-reviews, grt+watch_chromium.org, darin-cc_chromium.org, jam, 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

Adding error handlers to setup.exe. The handlers make setup crash cleanly when we run out of memory, on heap corruption and on invalid parameters in the CRT. Moved 2 functions from startup_helper_win to base target. Renamed startup_helper_win to sandbox_helper_win now that it contains only a function related to the sandbox. BUG=530624 Committed: https://crrev.com/18d3ed36f113ef9fb159d729ec5c89b578ece692 Cr-Commit-Position: refs/heads/master@{#354591}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Comments #

Patch Set 3 : Rebasing #

Patch Set 4 : Fix lint errors/warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -226 lines) Patch
M ash/ash.gyp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/content/shell_with_content_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M base/base.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A base/win/process_startup_helper.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A + base/win/process_startup_helper.cc View 1 chunk +55 lines, -69 lines 0 comments Download
M chrome/BUILD.gn View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/client_util.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/nacl/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/broker/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/loader/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/loader/nacl_helper_win_64.cc View 1 2 3 3 chunks +8 lines, -3 lines 0 comments Download
M content/BUILD.gn View 1 chunk +3 lines, -5 lines 0 comments Download
M content/app/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 10 chunks +11 lines, -11 lines 0 comments Download
A content/app/sandbox_helper_win.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M content/app/startup_helper_win.cc View 1 chunk +0 lines, -69 lines 0 comments Download
M content/content.gyp View 1 chunk +4 lines, -6 lines 0 comments Download
M content/content_app.gypi View 1 1 chunk +1 line, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/public/app/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
A content/public/app/sandbox_helper_win.h View 1 chunk +22 lines, -0 lines 0 comments Download
M content/public/app/startup_helper_win.h View 1 chunk +0 lines, -37 lines 0 comments Download
M content/public/test/test_launcher.cc View 1 2 3 3 chunks +2 lines, -1 line 0 comments Download
M content/shell/app/shell_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/test/BUILD.gn View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M extensions/shell/app/shell_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/BUILD.gn View 2 chunks +4 lines, -2 lines 0 comments Download
M ui/app_list/app_list.gyp View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/demo/app_list_demo_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/examples.gyp View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/examples_with_content_main_exe.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (10 generated)
Patrick Monette
Functional changes are in setup_main.cc The rest consist of splitting the content_startup_helper_win build target into ...
5 years, 2 months ago (2015-10-07 17:34:13 UTC) #3
grt (UTC plus 2)
https://codereview.chromium.org/1387963006/diff/20001/base/base.gyp File base/base.gyp (right): https://codereview.chromium.org/1387963006/diff/20001/base/base.gyp#newcode1668 base/base.gyp:1668: 'target_name': 'process_startup_helper_win', is this extra target needed? content_app_deps already ...
5 years, 2 months ago (2015-10-08 11:52:08 UTC) #4
Patrick Monette
Responded to Greg's comments. Take another look please! https://codereview.chromium.org/1387963006/diff/20001/base/base.gyp File base/base.gyp (right): https://codereview.chromium.org/1387963006/diff/20001/base/base.gyp#newcode1668 base/base.gyp:1668: 'target_name': ...
5 years, 2 months ago (2015-10-08 21:22:47 UTC) #5
grt (UTC plus 2)
lgtm
5 years, 2 months ago (2015-10-09 15:06:02 UTC) #6
grt (UTC plus 2)
On 2015/10/09 15:06:02, grt (very slow until Oct 12) wrote: > lgtm Please update the ...
5 years, 2 months ago (2015-10-09 15:06:45 UTC) #7
pmonette_google.com
brett@ Can you take a look please?
5 years, 2 months ago (2015-10-09 17:03:22 UTC) #9
grt (UTC plus 2)
brettw: ping
5 years, 2 months ago (2015-10-14 19:51:03 UTC) #11
brettw
lgtm
5 years, 2 months ago (2015-10-15 23:18:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387963006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387963006/40001
5 years, 2 months ago (2015-10-16 04:02:03 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/82176) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-10-16 04:04:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387963006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387963006/80001
5 years, 2 months ago (2015-10-16 17:32:51 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/121837)
5 years, 2 months ago (2015-10-16 20:04:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387963006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387963006/80001
5 years, 2 months ago (2015-10-16 20:10:21 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 2 months ago (2015-10-16 21:06:15 UTC) #24
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 21:07:25 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/18d3ed36f113ef9fb159d729ec5c89b578ece692
Cr-Commit-Position: refs/heads/master@{#354591}

Powered by Google App Engine
This is Rietveld 408576698