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

Issue 2925383002: Move ScopedTokenPrivilege to chrome/installer/util (Closed)

Created:
3 years, 6 months ago by alito
Modified:
3 years, 6 months ago
Reviewers:
grt (UTC plus 2)
CC:
chromium-reviews, grt+watch_chromium.org, pennymac+watch_chromium.org, wfh+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ScopedTokenPrivilege to chrome/installer/util If the Chrome Cleaner requires a reboot of the machine to complete the cleanup operation, Chrome will need to offer a reboot to the user. In order to initiate a shutdown + restart, Chrome needs to acquire SeShutdownPrivilege. The ScopedTokenPrivilege from chrome/installer/setup/setup_util provides that functionality. This CL moves it to chrome/installer/util where it can be used by both Chrome and Setup. BUG=728136 Review-Url: https://codereview.chromium.org/2925383002 Cr-Commit-Position: refs/heads/master@{#478357} Committed: https://chromium.googlesource.com/chromium/src/+/524fdc6e30b5cdeb2f795abb5d571711bbdd75c6

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed Greg's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -173 lines) Patch
M chrome/installer/setup/setup_util.h View 2 chunks +0 lines, -32 lines 0 comments Download
M chrome/installer/setup/setup_util.cc View 1 chunk +0 lines, -41 lines 0 comments Download
M chrome/installer/setup/setup_util_unittest.cc View 2 chunks +0 lines, -99 lines 0 comments Download
M chrome/installer/setup/user_hive_visitor.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/installer/util/scoped_token_privilege.h View 1 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/installer/util/scoped_token_privilege.cc View 1 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/installer/util/scoped_token_privilege_unittest.cc View 1 1 chunk +111 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
alito
PTAL. This is a straight-forward move of the ScopedTokenPrivilege to a location where both Chrome ...
3 years, 6 months ago (2017-06-08 23:43:33 UTC) #2
grt (UTC plus 2)
lgtm with some nits. https://codereview.chromium.org/2925383002/diff/1/chrome/installer/util/scoped_token_privilege.h File chrome/installer/util/scoped_token_privilege.h (right): https://codereview.chromium.org/2925383002/diff/1/chrome/installer/util/scoped_token_privilege.h#newcode13 chrome/installer/util/scoped_token_privilege.h:13: // This class is available ...
3 years, 6 months ago (2017-06-09 08:35:28 UTC) #3
alito
All done. Thanks. https://codereview.chromium.org/2925383002/diff/1/chrome/installer/util/scoped_token_privilege.h File chrome/installer/util/scoped_token_privilege.h (right): https://codereview.chromium.org/2925383002/diff/1/chrome/installer/util/scoped_token_privilege.h#newcode13 chrome/installer/util/scoped_token_privilege.h:13: // This class is available for ...
3 years, 6 months ago (2017-06-09 17:20:51 UTC) #4
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/2925383002/20001
3 years, 6 months ago (2017-06-09 17:21:24 UTC) #7
commit-bot: I haz the power
3 years, 6 months ago (2017-06-09 18:56:32 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/524fdc6e30b5cdeb2f795abb5d57...

Powered by Google App Engine
This is Rietveld 408576698