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

Issue 3521016: AU: Start checkpointing update progress. (Closed)

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

Description

AU: Start checkpointing update progress. Checkpoint the manifest metadata size and the update check response hash in the preference store. Also checkpoint the next operation and data offset. Add methods for getting/setting hash context. BUG=7390, 7394 TEST=unit tests Change-Id: I25291bf598ac9b0f1033e11cfe59df45b1f6eeab Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=73058b4

Patch Set 1 #

Patch Set 2 : update copyrights #

Patch Set 3 : added checkpoints and hash context get/set #

Total comments: 10

Patch Set 4 : reduce prefs noise by removing logging #

Patch Set 5 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -45 lines) Patch
M delta_performer.h View 1 2 3 4 2 chunks +11 lines, -2 lines 0 comments Download
M delta_performer.cc View 1 2 3 4 6 chunks +44 lines, -3 lines 0 comments Download
M delta_performer_unittest.cc View 1 2 3 4 5 chunks +20 lines, -4 lines 0 comments Download
M download_action.h View 3 chunks +5 lines, -1 line 0 comments Download
M download_action.cc View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M download_action_unittest.cc View 5 chunks +13 lines, -5 lines 0 comments Download
M generate_delta_main.cc View 1 2 3 4 5 chunks +15 lines, -5 lines 0 comments Download
M omaha_hash_calculator.h View 3 4 2 chunks +13 lines, -4 lines 0 comments Download
M omaha_hash_calculator.cc View 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M omaha_hash_calculator_unittest.cc View 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M omaha_response_handler_action.h View 1 4 chunks +8 lines, -2 lines 0 comments Download
M omaha_response_handler_action.cc View 1 2 3 4 2 chunks +12 lines, -8 lines 0 comments Download
M omaha_response_handler_action_unittest.cc View 1 2 chunks +11 lines, -2 lines 0 comments Download
M prefs.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M prefs_interface.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M update_attempter.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M update_attempter_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
petkov
Doing this one step/patch at a time...
10 years, 2 months ago (2010-10-06 18:49:44 UTC) #1
petkov
Added more code and updated the CL description.
10 years, 2 months ago (2010-10-06 20:43:31 UTC) #2
adlr
http://codereview.chromium.org/3521016/diff/4001/5001 File delta_performer.cc (right): http://codereview.chromium.org/3521016/diff/4001/5001#newcode470 delta_performer.cc:470: // TEST_AND_RETURN_FALSE(prefs_->SetString(kPrefsUpdateStateSignedSHA256Context, 80 cols http://codereview.chromium.org/3521016/diff/4001/5007 File generate_delta_main.cc (right): http://codereview.chromium.org/3521016/diff/4001/5007#newcode73 ...
10 years, 2 months ago (2010-10-06 21:16:38 UTC) #3
petkov
Thanks for the review. PTAL -- I've added the SHA-256 state to the context -- ...
10 years, 2 months ago (2010-10-06 23:08:33 UTC) #4
adlr
LGTM http://codereview.chromium.org/3521016/diff/4001/5007 File generate_delta_main.cc (right): http://codereview.chromium.org/3521016/diff/4001/5007#newcode92 generate_delta_main.cc:92: file_util::Delete(prefs_dir, true); deleting is probably fine.. either way. ...
10 years, 2 months ago (2010-10-06 23:22:02 UTC) #5
petkov
10 years, 2 months ago (2010-10-06 23:24:56 UTC) #6
Thanks, I'll push soon.

http://codereview.chromium.org/3521016/diff/4001/5007
File generate_delta_main.cc (right):

http://codereview.chromium.org/3521016/diff/4001/5007#newcode92
generate_delta_main.cc:92: file_util::Delete(prefs_dir, true);
On 2010/10/06 23:22:03, adlr wrote:
> deleting is probably fine.. either way. if you killed it, of course the delete
> wouldn't run

Let's not delete it for now -- this way we can also test if test state from an
update that completes fully messes up the next update.

Powered by Google App Engine
This is Rietveld 408576698