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

Issue 1881001: AU: Many minor cleanup changes (Closed)

Created:
10 years, 7 months ago by adlr
Modified:
9 years ago
Reviewers:
Daniel Erat
CC:
chromium-os-reviews_chromium.org, dneiss, adlr
Base URL:
ssh://git@chromiumos-git/chromeos
Visibility:
Public.

Description

AU: Many minor cleanup changes postinstall: Run postinst twice, once for pre-commit (ie, before we mark the install partition bootable in the partition table), and post-commit (for after we do). This behavior is needed for specific types of firmware update. download action: flush caches, as we found was necessary in memento_updater.sh omaha request prep action: update the names of keys we look for in lsb-release, also get the AU server url from a file, rather than hard-code it. set bootable flag action: GPT support. also, some misc utility functions. BUG=None TEST=attached unittests

Patch Set 1 #

Total comments: 18

Patch Set 2 : fixes for review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -317 lines) Patch
M src/platform/installer/chromeos-postinst View 1 chunk +21 lines, -5 lines 0 comments Download
M src/platform/update_engine/download_action.cc View 3 chunks +23 lines, -0 lines 0 comments Download
M src/platform/update_engine/main.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/platform/update_engine/omaha_request_prep_action.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/platform/update_engine/omaha_request_prep_action.cc View 1 4 chunks +13 lines, -7 lines 0 comments Download
M src/platform/update_engine/omaha_request_prep_action_unittest.cc View 1 4 chunks +12 lines, -6 lines 0 comments Download
M src/platform/update_engine/postinstall_runner_action.h View 3 chunks +8 lines, -3 lines 0 comments Download
M src/platform/update_engine/postinstall_runner_action.cc View 1 1 chunk +48 lines, -23 lines 0 comments Download
M src/platform/update_engine/postinstall_runner_action_unittest.cc View 3 chunks +10 lines, -7 lines 0 comments Download
M src/platform/update_engine/set_bootable_flag_action.h View 3 chunks +3 lines, -7 lines 0 comments Download
M src/platform/update_engine/set_bootable_flag_action.cc View 1 chunk +54 lines, -94 lines 0 comments Download
M src/platform/update_engine/set_bootable_flag_action_unittest.cc View 1 chunk +6 lines, -126 lines 0 comments Download
M src/platform/update_engine/update_attempter.cc View 3 chunks +17 lines, -11 lines 0 comments Download
M src/platform/update_engine/update_check_action.h View 2 chunks +17 lines, -12 lines 0 comments Download
M src/platform/update_engine/update_check_action.cc View 2 chunks +3 lines, -1 line 0 comments Download
M src/platform/update_engine/update_check_action_unittest.cc View 1 12 chunks +24 lines, -12 lines 0 comments Download
M src/platform/update_engine/utils.h View 1 1 chunk +16 lines, -0 lines 0 comments Download
M src/platform/update_engine/utils.cc View 1 2 chunks +30 lines, -0 lines 0 comments Download
M src/platform/update_engine/utils_unittest.cc View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
adlr
10 years, 7 months ago (2010-05-03 18:11:02 UTC) #1
Daniel Erat
LGTM with some comments. Side question: Any plans to get someone else working on the ...
10 years, 7 months ago (2010-05-03 21:51:18 UTC) #2
adlr
10 years, 7 months ago (2010-05-04 17:22:55 UTC) #3
Thanks. fixed and submitted.

Right now I don't think there are immediate plans to have someone else work on
this w/ me, but I found another person to help you out w/ the reviews, so your
load will lighten.

Also, feel free to send me reviews for windowmanager or whatever stuff.

http://codereview.chromium.org/1881001/diff/1/5
File src/platform/update_engine/omaha_request_prep_action.cc (right):

http://codereview.chromium.org/1881001/diff/1/5#newcode44
src/platform/update_engine/omaha_request_prep_action.cc:44: "en-US",  //lang
On 2010/05/03 21:51:18, Daniel Erat wrote:
> add a space between the "//" and "lang"

Done.

http://codereview.chromium.org/1881001/diff/1/7
File src/platform/update_engine/omaha_request_prep_action_unittest.cc (right):

http://codereview.chromium.org/1881001/diff/1/7#newcode164
src/platform/update_engine/omaha_request_prep_action_unittest.cc:164:
"CHROMEOS_RELEASE_FOO=CHROMEOS_RELEASE_VERSION=1.2.3.4\n"
On 2010/05/03 21:51:18, Daniel Erat wrote:
> are you missing a newline after "CHROMEOS_RELEASE_FOO=" here, or is this
> intentional?  MachineIdPersistsTest has the same issue

Yeah, that's intentional. A mis-parsing class might think the release version is
1.2.3.4, noth 0.2.2.3.

http://codereview.chromium.org/1881001/diff/1/7#newcode165
src/platform/update_engine/omaha_request_prep_action_unittest.cc:165:
"CHROMEOS_RELEASE_VERSION=0.2.2.3\nCHROMEOS_RELEASE_TRXCK=footrack"));
On 2010/05/03 21:51:18, Daniel Erat wrote:
> split this line

Done.

http://codereview.chromium.org/1881001/diff/1/7#newcode188
src/platform/update_engine/omaha_request_prep_action_unittest.cc:188:
"CHROMEOS_RELEASE_VERSION=0.2.2.3\nCHROMEOS_RELEASE_TRXCK=footrack"));
On 2010/05/03 21:51:18, Daniel Erat wrote:
> and this one too

Done.

http://codereview.chromium.org/1881001/diff/1/8
File src/platform/update_engine/postinstall_runner_action.cc (right):

http://codereview.chromium.org/1881001/diff/1/8#newcode10
src/platform/update_engine/postinstall_runner_action.cc:10: #include <vector>
On 2010/05/03 21:51:18, Daniel Erat wrote:
> move this include earlier

Done.

http://codereview.chromium.org/1881001/diff/1/8#newcode59
src/platform/update_engine/postinstall_runner_action.cc:59:
command.push_back("");
On 2010/05/03 21:51:18, Daniel Erat wrote:
> just write:
> 
> command.push_back(precommit_ ? "" : "--postcommit");
> 
> ?

Done.

http://codereview.chromium.org/1881001/diff/1/17
File src/platform/update_engine/update_check_action_unittest.cc (right):

http://codereview.chromium.org/1881001/diff/1/17#newcode166
src/platform/update_engine/update_check_action_unittest.cc:166: "");
On 2010/05/03 21:51:18, Daniel Erat wrote:
> add "url" comments to this one and the next one

Done.

http://codereview.chromium.org/1881001/diff/1/18
File src/platform/update_engine/utils.cc (right):

http://codereview.chromium.org/1881001/diff/1/18#newcode205
src/platform/update_engine/utils.cc:205: if (*it == 'p')
On 2010/05/03 21:51:18, Daniel Erat wrote:
> what is a 'p' significant?  you should include a comment about this

Done.

http://codereview.chromium.org/1881001/diff/1/19
File src/platform/update_engine/utils.h (right):

http://codereview.chromium.org/1881001/diff/1/19#newcode98
src/platform/update_engine/utils.h:98: // Detects which bootloader this system
uses and returns which via the out
On 2010/05/03 21:51:18, Daniel Erat wrote:
> s/returns which/returns it/

Done.

Powered by Google App Engine
This is Rietveld 408576698