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

Issue 3022008: For actions, switch bool success into an exit code. (Closed)

Created:
10 years, 5 months ago by petkov
Modified:
9 years, 7 months ago
Reviewers:
adlr
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

For actions, switch bool success into an exit code. This way we can signal specific error conditions and then send appropriate events to Omaha from the UpdateAttempter. BUG=560 TEST=unit tests, gmerged and looked at logs

Patch Set 1 #

Patch Set 2 : remove trailing whitespace #

Patch Set 3 : switch to all positive error codes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -117 lines) Patch
M action_processor.h View 1 2 5 chunks +13 lines, -6 lines 0 comments Download
M action_processor.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M action_processor_unittest.cc View 3 chunks +7 lines, -6 lines 0 comments Download
M action_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M download_action.cc View 4 chunks +7 lines, -5 lines 0 comments Download
M download_action_unittest.cc View 1 5 chunks +7 lines, -6 lines 0 comments Download
M filesystem_copier_action.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M filesystem_copier_action_unittest.cc View 9 chunks +16 lines, -16 lines 0 comments Download
M integration_unittest.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M omaha_request_action.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M omaha_request_action_unittest.cc View 16 chunks +22 lines, -21 lines 0 comments Download
M omaha_response_handler_action.cc View 1 chunk +1 line, -1 line 0 comments Download
M omaha_response_handler_action_unittest.cc View 2 chunks +9 lines, -9 lines 0 comments Download
M postinstall_runner_action.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M postinstall_runner_action_unittest.cc View 2 chunks +10 lines, -8 lines 0 comments Download
M set_bootable_flag_action.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M test_utils.h View 3 chunks +3 lines, -3 lines 0 comments Download
M update_attempter.h View 1 chunk +2 lines, -2 lines 0 comments Download
M update_attempter.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M utils.h View 1 3 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
petkov
10 years, 5 months ago (2010-07-19 16:35:46 UTC) #1
adlr
LGTM, but a question why -1 for the error? presumably we'll have more error codes ...
10 years, 5 months ago (2010-07-19 18:05:16 UTC) #2
petkov
On 2010/07/19 18:05:16, adlr wrote: > LGTM, but a question > > why -1 for ...
10 years, 5 months ago (2010-07-19 18:08:53 UTC) #3
adlr
I'm fine w/ all positive or all negative. It might be pain if we ever ...
10 years, 5 months ago (2010-07-19 18:14:30 UTC) #4
petkov
PTAL. Switched to a positive generic error code of 1. Maybe we can reserve the ...
10 years, 5 months ago (2010-07-19 18:19:45 UTC) #5
adlr
10 years, 5 months ago (2010-07-19 18:25:39 UTC) #6
LGTM

I guess if we had a bunch of possible error codes, we could think about
organizing them.

-andrew

On Mon, Jul 19, 2010 at 11:19 AM, <petkov@chromium.org> wrote:

> PTAL. Switched to a positive generic error code of 1. Maybe we can reserve
> the
> first N error codes for generic codes and start the action-specific codes
> from
> N+1.
>
>
>
> http://codereview.chromium.org/3022008/show
>

Powered by Google App Engine
This is Rietveld 408576698