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

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

Created:
4 years, 7 months ago by fdoray
Modified:
4 years, 7 months ago
Reviewers:
grt (UTC plus 2)
CC:
chromium-reviews, grt+watch_chromium.org, 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

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 enable rollback flag is set to false, Rollback() is a no-op. This CL is identical to the reverted CL https://codereview.chromium.org/1882923003/ modulo a fix not to break official builds. BUG=601936 Committed: https://crrev.com/a5f09ba5c1e42487724bf62b9f25186b3e76c69d Cr-Commit-Position: refs/heads/master@{#394396}

Patch Set 1 : Identical to https://codereview.chromium.org/1882923003/ #

Patch Set 2 : fix for official builds #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : don't remove code from app_launcher_installer.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -687 lines) Patch
M chrome/chrome_installer.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/setup/app_launcher_installer.cc View 1 2 3 2 chunks +9 lines, -8 lines 0 comments Download
M chrome/installer/setup/install.cc View 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 6 chunks +16 lines, -12 lines 0 comments Download
M chrome/installer/setup/install_worker_unittest.cc View 2 chunks +1 line, -6 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 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 chunk +4 lines, -2 lines 0 comments Download
M chrome/installer/util/BUILD.gn View 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 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 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 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/installer/util/delete_reg_key_work_item.cc View 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 4 chunks +8 lines, -26 lines 0 comments Download
M chrome/installer/util/delete_tree_work_item.cc View 1 chunk +12 lines, -132 lines 0 comments Download
M chrome/installer/util/delete_tree_work_item_unittest.cc View 1 chunk +69 lines, -191 lines 0 comments Download
M chrome/installer/util/install_util.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/installer/util/install_util.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/util/installer_state.cc View 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 2 chunks +11 lines, -20 lines 0 comments Download
M chrome/installer/util/work_item.h View 4 chunks +50 lines, -33 lines 0 comments Download
M chrome/installer/util/work_item.cc View 4 chunks +29 lines, -13 lines 0 comments Download
M chrome/installer/util/work_item_list.h View 4 chunks +13 lines, -43 lines 0 comments Download
M chrome/installer/util/work_item_list.cc View 4 chunks +17 lines, -60 lines 0 comments Download
M chrome/installer/util/work_item_list_unittest.cc View 2 chunks +10 lines, -10 lines 0 comments Download
M chrome/installer/util/work_item_mocks.h View 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/installer/util/work_item_unittest.cc View 1 chunk +104 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
fdoray
Can you review this CL? Thanks.
4 years, 7 months ago (2016-05-16 17:33:43 UTC) #3
grt (UTC plus 2)
https://codereview.chromium.org/1982653002/diff/20001/chrome/installer/setup/app_launcher_installer.h File chrome/installer/setup/app_launcher_installer.h (left): https://codereview.chromium.org/1982653002/diff/20001/chrome/installer/setup/app_launcher_installer.h#oldcode14 chrome/installer/setup/app_launcher_installer.h:14: #if defined(GOOGLE_CHROME_BUILD) why remove this? https://codereview.chromium.org/1982653002/diff/20001/chrome/installer/setup/app_launcher_installer.h#oldcode32 chrome/installer/setup/app_launcher_installer.h:32: void AddAppLauncherVersionKeyWorkItems( ...
4 years, 7 months ago (2016-05-16 18:55:01 UTC) #4
fdoray
PTAnL https://codereview.chromium.org/1982653002/diff/20001/chrome/installer/setup/app_launcher_installer.h File chrome/installer/setup/app_launcher_installer.h (left): https://codereview.chromium.org/1982653002/diff/20001/chrome/installer/setup/app_launcher_installer.h#oldcode14 chrome/installer/setup/app_launcher_installer.h:14: #if defined(GOOGLE_CHROME_BUILD) On 2016/05/16 18:55:01, grt (slow) wrote: ...
4 years, 7 months ago (2016-05-17 17:18:48 UTC) #5
fdoray
PTAnL
4 years, 7 months ago (2016-05-17 18:40:22 UTC) #6
grt (UTC plus 2)
lgtm
4 years, 7 months ago (2016-05-18 02:40:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982653002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982653002/60001
4 years, 7 months ago (2016-05-18 12:00:33 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-18 13:08:46 UTC) #11
commit-bot: I haz the power
4 years, 7 months ago (2016-05-18 13:10:04 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a5f09ba5c1e42487724bf62b9f25186b3e76c69d
Cr-Commit-Position: refs/heads/master@{#394396}

Powered by Google App Engine
This is Rietveld 408576698