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

Side by Side Diff: chrome/installer/setup/user_hive_visitor.h

Issue 2027063002: Introduce UserHiveVisitor for performing operations on local users' registry hives. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gab review Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/installer/setup/uninstall.cc ('k') | chrome/installer/setup/user_hive_visitor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_INSTALLER_SETUP_USER_HIVE_VISITOR_H_
6 #define CHROME_INSTALLER_SETUP_USER_HIVE_VISITOR_H_
7
8 #include "base/callback_forward.h"
9
10 namespace base {
11 namespace win {
12 class RegKey;
13 }
14 }
15
16 namespace installer {
17
18 // The visitor callback invoked for each user's registry hive by
19 // |VisitUserHives|. |user_sid| is the user SID being visited. |key| is the root
20 // of that user's registry hive. Implementations return |true| to indicate that
21 // the visits should continue, or |false| to indicate that visits should stop.
22 using HiveVisitor =
23 base::Callback<bool(const wchar_t* user_sid, base::win::RegKey* key)>;
24
25 // Runs |visitor| for each local user profile's registry hive.
26 void VisitUserHives(const HiveVisitor& visitor);
27
28 } // namespace installer
29
30 #endif // CHROME_INSTALLER_SETUP_USER_HIVE_VISITOR_H_
OLDNEW
« no previous file with comments | « chrome/installer/setup/uninstall.cc ('k') | chrome/installer/setup/user_hive_visitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698