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

Issue 2973313002: Chrome Cleanup: re-open settings post-cleanup if reboot is needed (Closed)

Created:
3 years, 5 months ago by proberge
Modified:
3 years, 5 months ago
Reviewers:
ftirelo, csharp, Jialiu Lin
CC:
chromium-reviews, vakh+watch_chromium.org, joenotcharles+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, grt+watch_chromium.org, timvolodine, csharp+watch_chromium.org, alito+watch_chromium.org, ftirelo+watch_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Chrome Cleanup: re-open settings post-cleanup if reboot is needed Once the user has accepted cleanup, the cleaner runs for a few minutes and eventually terminates with exit codes 0 (success) or 15 (reboot required). If a reboot is required, we would like the user to reboot their machine as soon as possible. However, opening a new foreground tab has issues such as putting settings option where the user was clicking on their original page. To be safe, we use a new background tab so the user can eventually get to it. We don't open a new tab if the current tab is chrome://settings since most* users will be able to see the call to reboot. *: Users who have scrolled down the page may not see the prompt if they don't scroll back up. I don't think we want to refresh or scroll up the page in case they were modifying another setting. Known issue: users that had a settings tab opened prior to the transition to kInfected and are on that old tab instead of a more recent settings tab may not see the call to reboot. BUG=690020 Review-Url: https://codereview.chromium.org/2973313002 Cr-Commit-Position: refs/heads/master@{#486102} Committed: https://chromium.googlesource.com/chromium/src/+/e1324a6252e368ed1b6fb5eb9dcfe77a203bbee2

Patch Set 1 #

Patch Set 2 : add line break #

Patch Set 3 : Revert changes to md_settings_ui.cc (to do in another CL) #

Total comments: 9

Patch Set 4 : Address review comments on #3 #

Total comments: 6

Patch Set 5 : Address review commenst on #4 #

Patch Set 6 : Rebase #

Patch Set 7 : navigation_util -> navigation_util_win since not used on other platforms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -26 lines) Patch
M chrome/browser/safe_browsing/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_dialog_controller_impl_win.cc View 1 2 3 4 5 6 2 chunks +5 lines, -26 lines 0 comments Download
A chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util_win.h View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util_win.cc View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (16 generated)
proberge
3 years, 5 months ago (2017-07-10 16:55:57 UTC) #2
csharp
https://codereview.chromium.org/2973313002/diff/40001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc File chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc (right): https://codereview.chromium.org/2973313002/diff/40001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc#newcode451 chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc:451: /*skip_if_already_opened*/ true); nit: */ -> =*/ https://codereview.chromium.org/2973313002/diff/40001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_dialog_controller_impl_win.cc File chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_dialog_controller_impl_win.cc ...
3 years, 5 months ago (2017-07-10 20:53:26 UTC) #3
proberge
Thanks for the quick review! https://codereview.chromium.org/2973313002/diff/40001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc File chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc (right): https://codereview.chromium.org/2973313002/diff/40001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc#newcode451 chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc:451: /*skip_if_already_opened*/ true); On 2017/07/10 ...
3 years, 5 months ago (2017-07-10 21:16:04 UTC) #5
ftirelo
https://codereview.chromium.org/2973313002/diff/80001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc File chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc (right): https://codereview.chromium.org/2973313002/diff/80001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc#newcode448 chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc:448: if (browser) Nit: please add {} https://codereview.chromium.org/2973313002/diff/80001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_dialog_controller_impl_win.cc File chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_dialog_controller_impl_win.cc ...
3 years, 5 months ago (2017-07-10 21:27:44 UTC) #6
proberge
https://codereview.chromium.org/2973313002/diff/80001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc File chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc (right): https://codereview.chromium.org/2973313002/diff/80001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc#newcode448 chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.cc:448: if (browser) On 2017/07/10 21:27:44, ftirelo wrote: > Nit: ...
3 years, 5 months ago (2017-07-11 14:37:10 UTC) #7
ftirelo
lgtm
3 years, 5 months ago (2017-07-11 14:54:36 UTC) #8
csharp
lgtm https://codereview.chromium.org/2973313002/diff/40001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util.h File chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util.h (right): https://codereview.chromium.org/2973313002/diff/40001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util.h#newcode13 chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util.h:13: // exists. On 2017/07/10 21:16:03, proberge wrote: > ...
3 years, 5 months ago (2017-07-11 16:54:19 UTC) #9
proberge
On 2017/07/11 16:54:19, csharp wrote: > lgtm > > https://codereview.chromium.org/2973313002/diff/40001/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util.h > File > chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util.h > ...
3 years, 5 months ago (2017-07-12 13:19:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2973313002/90001
3 years, 5 months ago (2017-07-12 13:19:13 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/256437) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 5 months ago (2017-07-12 13:21:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2973313002/110001
3 years, 5 months ago (2017-07-12 14:42:47 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/487185)
3 years, 5 months ago (2017-07-12 14:52:37 UTC) #21
proberge
++jialiul for safe_browsing OWNERS approval
3 years, 5 months ago (2017-07-12 14:57:07 UTC) #23
Jialiu Lin
lgtm
3 years, 5 months ago (2017-07-12 16:58:19 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2973313002/110001
3 years, 5 months ago (2017-07-12 16:59:19 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/307918)
3 years, 5 months ago (2017-07-12 17:58:20 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2973313002/130001
3 years, 5 months ago (2017-07-12 18:22:04 UTC) #31
commit-bot: I haz the power
3 years, 5 months ago (2017-07-12 21:48:45 UTC) #34
Message was sent while issue was closed.
Committed patchset #7 (id:130001) as
https://chromium.googlesource.com/chromium/src/+/e1324a6252e368ed1b6fb5eb9dcf...

Powered by Google App Engine
This is Rietveld 408576698