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

Issue 1882923003: Add best-effort/allow rollback flags on WorkItem. (Closed)

Created:
4 years, 8 months ago by fdoray
Modified:
4 years, 7 months ago
CC:
chromium-reviews, grt+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@simple_list_tests
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add best-effort/allow rollback flags on WorkItem. When the best-effort flag is set to true, Do() always return true (i.e. it will never cause failure of its parent WorkItemList). When the allow rollback flag is set to false, Rollback() is a no-op. BUG=601936 Committed: https://crrev.com/e63a3064da66ff91ca8cccbb0c279185b0b93321 Cr-Commit-Position: refs/heads/master@{#393652}

Patch Set 1 #

Total comments: 25

Patch Set 2 : rebase #

Patch Set 3 : CR grt #5 #

Patch Set 4 : self review #

Patch Set 5 : self review #

Total comments: 21

Patch Set 6 : rebase #

Patch Set 7 : CR grt #7 #

Patch Set 8 : CR grt #7 #

Total comments: 4

Patch Set 9 : CR grt #9 #

Patch Set 10 : rebase #

Patch Set 11 : fix build error #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+487 lines, -679 lines) Patch
M chrome/chrome_installer.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 5 6 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/installer/setup/install_worker.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 2 3 4 5 6 7 8 9 6 chunks +16 lines, -12 lines 0 comments Download
M chrome/installer/setup/install_worker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -6 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 4 5 6 3 chunks +15 lines, -10 lines 0 comments Download
M chrome/installer/setup/update_active_setup_version_work_item.h View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/installer/setup/update_active_setup_version_work_item.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/installer/util/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/callback_work_item.h View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/installer/util/callback_work_item.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/conditional_work_item_list.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/installer/util/conditional_work_item_list.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/installer/util/conditional_work_item_list_unittest.cc View 1 2 2 chunks +10 lines, -10 lines 0 comments Download
M chrome/installer/util/copy_tree_work_item.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/installer/util/copy_tree_work_item.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/create_dir_work_item.h View 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/installer/util/create_dir_work_item.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/create_reg_key_work_item.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/installer/util/create_reg_key_work_item.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/delete_reg_key_work_item.h View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/installer/util/delete_reg_key_work_item.cc View 1 2 3 1 chunk +10 lines, -12 lines 0 comments Download
M chrome/installer/util/delete_reg_value_work_item.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/installer/util/delete_reg_value_work_item.cc View 4 chunks +10 lines, -11 lines 0 comments Download
M chrome/installer/util/delete_tree_work_item.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -26 lines 0 comments Download
M chrome/installer/util/delete_tree_work_item.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -132 lines 0 comments Download
M chrome/installer/util/delete_tree_work_item_unittest.cc View 1 2 3 4 5 6 1 chunk +69 lines, -191 lines 0 comments Download
M chrome/installer/util/install_util.h View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/installer/util/install_util.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/util/installer_state.cc View 1 2 3 4 5 6 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/installer/util/move_tree_work_item.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/installer/util/move_tree_work_item.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/self_reg_work_item.h View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/installer/util/self_reg_work_item.cc View 1 chunk +4 lines, -9 lines 0 comments Download
M chrome/installer/util/set_reg_value_work_item.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/installer/util/set_reg_value_work_item.cc View 1 2 2 chunks +11 lines, -20 lines 0 comments Download
M chrome/installer/util/work_item.h View 1 2 3 4 5 6 4 chunks +50 lines, -33 lines 1 comment Download
M chrome/installer/util/work_item.cc View 1 2 3 4 5 6 4 chunks +29 lines, -13 lines 0 comments Download
M chrome/installer/util/work_item_list.h View 1 2 3 4 5 6 7 8 4 chunks +13 lines, -43 lines 0 comments Download
M chrome/installer/util/work_item_list.cc View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -60 lines 0 comments Download
M chrome/installer/util/work_item_list_unittest.cc View 1 2 2 chunks +10 lines, -10 lines 0 comments Download
M chrome/installer/util/work_item_mocks.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/installer/util/work_item_unittest.cc View 1 2 3 4 5 6 1 chunk +104 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
fdoray
Can you review this CL? Thanks.
4 years, 8 months ago (2016-04-13 19:23:22 UTC) #2
fdoray
https://codereview.chromium.org/1882923003/diff/1/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/1882923003/diff/1/chrome/installer/setup/install_worker.cc#newcode304 chrome/installer/setup/install_worker.cc:304: // "-full" channel anyway. I don't understand what this ...
4 years, 8 months ago (2016-04-14 14:24:34 UTC) #3
grt (UTC plus 2)
answering question now. will look at the code a bit later. let me know if ...
4 years, 8 months ago (2016-04-14 15:47:02 UTC) #4
grt (UTC plus 2)
https://codereview.chromium.org/1882923003/diff/1/chrome/installer/setup/update_active_setup_version_work_item.cc File chrome/installer/setup/update_active_setup_version_work_item.cc (right): https://codereview.chromium.org/1882923003/diff/1/chrome/installer/setup/update_active_setup_version_work_item.cc#newcode42 chrome/installer/setup/update_active_setup_version_work_item.cc:42: return set_reg_value_work_item_.Do(); should this propagate its state to the ...
4 years, 7 months ago (2016-04-27 17:29:17 UTC) #5
fdoray
Can you take another look? Pending discussion: https://codereview.chromium.org/1882923003/diff/1/chrome/installer/util/work_item_list.cc#newcode238 Thanks! https://codereview.chromium.org/1882923003/diff/1/chrome/installer/setup/update_active_setup_version_work_item.cc File chrome/installer/setup/update_active_setup_version_work_item.cc (right): https://codereview.chromium.org/1882923003/diff/1/chrome/installer/setup/update_active_setup_version_work_item.cc#newcode42 chrome/installer/setup/update_active_setup_version_work_item.cc:42: ...
4 years, 7 months ago (2016-05-02 20:10:01 UTC) #6
grt (UTC plus 2)
https://codereview.chromium.org/1882923003/diff/1/chrome/installer/util/work_item_list.cc File chrome/installer/util/work_item_list.cc (right): https://codereview.chromium.org/1882923003/diff/1/chrome/installer/util/work_item_list.cc#newcode238 chrome/installer/util/work_item_list.cc:238: bool NoRollbackWorkItemList::DoImpl() { On 2016/05/02 20:10:00, fdoray wrote: > ...
4 years, 7 months ago (2016-05-06 18:39:14 UTC) #7
fdoray
grt@: Can you take another look? Thanks. https://codereview.chromium.org/1882923003/diff/80001/chrome/installer/util/delete_tree_work_item.h File chrome/installer/util/delete_tree_work_item.h (right): https://codereview.chromium.org/1882923003/diff/80001/chrome/installer/util/delete_tree_work_item.h#newcode35 chrome/installer/util/delete_tree_work_item.h:35: const std::vector<base::FilePath>& ...
4 years, 7 months ago (2016-05-10 18:35:32 UTC) #8
grt (UTC plus 2)
looks good! https://codereview.chromium.org/1882923003/diff/140001/chrome/installer/util/work_item_list.cc File chrome/installer/util/work_item_list.cc (right): https://codereview.chromium.org/1882923003/diff/140001/chrome/installer/util/work_item_list.cc#newcode54 chrome/installer/util/work_item_list.cc:54: if (result) how about changing this to: ...
4 years, 7 months ago (2016-05-12 17:26:24 UTC) #9
fdoray
PTAnL https://codereview.chromium.org/1882923003/diff/140001/chrome/installer/util/work_item_list.cc File chrome/installer/util/work_item_list.cc (right): https://codereview.chromium.org/1882923003/diff/140001/chrome/installer/util/work_item_list.cc#newcode54 chrome/installer/util/work_item_list.cc:54: if (result) On 2016/05/12 17:26:24, grt (slow) wrote: ...
4 years, 7 months ago (2016-05-13 14:31:45 UTC) #10
grt (UTC plus 2)
lgtm
4 years, 7 months ago (2016-05-13 18:15:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882923003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882923003/180001
4 years, 7 months ago (2016-05-13 19:11:30 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/213344)
4 years, 7 months ago (2016-05-13 20:12:07 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882923003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882923003/200001
4 years, 7 months ago (2016-05-13 20:21:42 UTC) #19
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 7 months ago (2016-05-13 21:59:09 UTC) #20
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/e63a3064da66ff91ca8cccbb0c279185b0b93321 Cr-Commit-Position: refs/heads/master@{#393652}
4 years, 7 months ago (2016-05-13 22:00:33 UTC) #22
stgao
FYI: Findit identified this CL as the culprit to break compile on "Google Chrome Win". ...
4 years, 7 months ago (2016-05-14 06:33:41 UTC) #24
hans
https://codereview.chromium.org/1882923003/diff/200001/chrome/installer/util/work_item.h File chrome/installer/util/work_item.h (left): https://codereview.chromium.org/1882923003/diff/200001/chrome/installer/util/work_item.h#oldcode211 chrome/installer/util/work_item.h:211: void set_ignore_failure(bool ignore_failure) { Removing this broke the build. ...
4 years, 7 months ago (2016-05-14 19:54:37 UTC) #26
hans
4 years, 7 months ago (2016-05-14 19:55:14 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:200001) has been created in
https://codereview.chromium.org/1976443005/ by hans@chromium.org.

The reason for reverting is: This broke the build:

..\..\chrome\installer\setup\app_launcher_installer.cc(52,9):  error: no member
named 'set_ignore_failure' in 'WorkItem'
      ->set_ignore_failure(true);
        ^.

Powered by Google App Engine
This is Rietveld 408576698