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

Issue 359443002: Elevated install of recovery component when needed (Closed)

Created:
6 years, 6 months ago by xiaoling
Modified:
6 years ago
Reviewers:
waffles, Sorin Jianu
CC:
chromium-reviews, cbentzel+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Elevated install of recovery component when needed. First tries to do recovery non-elevated. When the process finds that elevation is needed, pop up a UI to notify user of UAC prompt. If permission is granted, run recovery component installer again with elevated privilege. The CL does not have the UI changes. A separate CL (https://codereview.chromium.org/325433002/) is created for that. This CL includes: (1) When elevation is needed to recover, save the installation source for retry, set a flag in preference to indicate that. (2) Provide API for elevated install BUG=381801 Committed: https://crrev.com/30c9f3f4fb1eccaef28e0438fe12352a012e591b Cr-Commit-Position: refs/heads/master@{#307372}

Patch Set 1 #

Patch Set 2 : Removed recovery_execute app. #

Patch Set 3 : #

Patch Set 4 : directly elevate ChromeRecovery.exe #

Patch Set 5 #

Patch Set 6 #

Patch Set 7 : directly invoke exe #

Total comments: 28

Patch Set 8 #

Patch Set 9 #

Patch Set 10 #

Patch Set 11 : addressed comments #

Total comments: 10

Patch Set 12 : address comments round 2 #

Total comments: 4

Patch Set 13 : Use workerpool thread to wait #

Patch Set 14 : comment out unused function on chromeos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -21 lines) Patch
M chrome/browser/component_updater/recovery_component_installer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -8 lines 0 comments Download
M chrome/browser/component_updater/recovery_component_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +173 lines, -13 lines 0 comments Download
M components/component_updater/pref_names.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/component_updater/pref_names.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (3 generated)
xiaoling
6 years, 6 months ago (2014-06-26 00:56:23 UTC) #1
xiaoling
Uploaded another patch set. The main change is removed recovery_exectue app. Use chrome.exe to copy ...
6 years, 5 months ago (2014-07-10 22:18:18 UTC) #2
waffles
Xiaoling, I'm very sorry it has taken so long to review this. Overall I am ...
6 years, 4 months ago (2014-08-25 16:56:33 UTC) #3
chromium-reviews
Thanks Josh for your great feedback. CIL. On Mon, Aug 25, 2014 at 9:56 AM, ...
6 years, 4 months ago (2014-08-25 17:52:59 UTC) #4
xiaoling
Now directly launches ChromeRecovery.exe elevated. This CL does not include the crx caching part, which ...
6 years, 3 months ago (2014-09-24 20:29:50 UTC) #5
xiaoling
PTAL. The implementation is much simpler now and most changes are within one file.
6 years ago (2014-12-05 00:17:48 UTC) #6
waffles
lgtm https://codereview.chromium.org/359443002/diff/110001/chrome/browser/component_updater/recovery_component_installer.cc File chrome/browser/component_updater/recovery_component_installer.cc (right): https://codereview.chromium.org/359443002/diff/110001/chrome/browser/component_updater/recovery_component_installer.cc#newcode54 chrome/browser/component_updater/recovery_component_installer.cc:54: enum ChromeRecvoeryExitCode { typo: "Recvoery"
6 years ago (2014-12-05 00:59:48 UTC) #7
Sorin Jianu
thank you Xiaoling! https://codereview.chromium.org/359443002/diff/110001/chrome/browser/component_updater/recovery_component_installer.cc File chrome/browser/component_updater/recovery_component_installer.cc (right): https://codereview.chromium.org/359443002/diff/110001/chrome/browser/component_updater/recovery_component_installer.cc#newcode54 chrome/browser/component_updater/recovery_component_installer.cc:54: enum ChromeRecvoeryExitCode { Just simply write: ...
6 years ago (2014-12-05 02:10:36 UTC) #8
xiaoling
Thank you! https://codereview.chromium.org/359443002/diff/110001/chrome/browser/component_updater/recovery_component_installer.cc File chrome/browser/component_updater/recovery_component_installer.cc (right): https://codereview.chromium.org/359443002/diff/110001/chrome/browser/component_updater/recovery_component_installer.cc#newcode54 chrome/browser/component_updater/recovery_component_installer.cc:54: enum ChromeRecvoeryExitCode { On 2014/12/05 00:59:48, waffles ...
6 years ago (2014-12-05 19:45:57 UTC) #9
Sorin Jianu
Thank you X! https://codereview.chromium.org/359443002/diff/190001/chrome/browser/component_updater/recovery_component_installer.cc File chrome/browser/component_updater/recovery_component_installer.cc (right): https://codereview.chromium.org/359443002/diff/190001/chrome/browser/component_updater/recovery_component_installer.cc#newcode64 chrome/browser/component_updater/recovery_component_installer.cc:64: const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); do ...
6 years ago (2014-12-06 00:41:53 UTC) #10
xiaoling
Thank you. Josh, can you please help to double check the thread model? RecoveryComponentInstaller::Install() is ...
6 years ago (2014-12-06 00:56:27 UTC) #11
waffles
https://codereview.chromium.org/359443002/diff/210001/chrome/browser/component_updater/recovery_component_installer.cc File chrome/browser/component_updater/recovery_component_installer.cc (right): https://codereview.chromium.org/359443002/diff/210001/chrome/browser/component_updater/recovery_component_installer.cc#newcode114 chrome/browser/component_updater/recovery_component_installer.cc:114: base::WorkerPool::PostTask( I think this is OK. Threads from the ...
6 years ago (2014-12-06 01:20:35 UTC) #12
xiaoling
Thanks for the suggestion. https://codereview.chromium.org/359443002/diff/210001/chrome/browser/component_updater/recovery_component_installer.cc File chrome/browser/component_updater/recovery_component_installer.cc (right): https://codereview.chromium.org/359443002/diff/210001/chrome/browser/component_updater/recovery_component_installer.cc#newcode114 chrome/browser/component_updater/recovery_component_installer.cc:114: base::WorkerPool::PostTask( On 2014/12/06 01:20:35, waffles ...
6 years ago (2014-12-06 02:21:38 UTC) #13
Sorin Jianu
lgtm thank you!
6 years ago (2014-12-08 19:18:48 UTC) #14
waffles
lgtm
6 years ago (2014-12-08 19:30:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/359443002/230001
6 years ago (2014-12-08 21:55:09 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/5653)
6 years ago (2014-12-08 22:24:56 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/359443002/250001
6 years ago (2014-12-08 22:31:31 UTC) #21
commit-bot: I haz the power
Committed patchset #14 (id:250001)
6 years ago (2014-12-08 23:19:00 UTC) #22
commit-bot: I haz the power
6 years ago (2014-12-08 23:19:55 UTC) #23
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/30c9f3f4fb1eccaef28e0438fe12352a012e591b
Cr-Commit-Position: refs/heads/master@{#307372}

Powered by Google App Engine
This is Rietveld 408576698