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

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: added missing :: 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
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|. The first argument is the user SID being visited, while the
20 // second is the root of that user's registry hive. Implementations return
21 // |true| to indicate that the visits should continue, or |false| to indicate
22 // that visits should stop.
23 using HiveVisitor = base::Callback<bool(const wchar_t*, base::win::RegKey*)>;
gab 2016/06/01 14:34:44 Name parameters here and use their names in commen
grt (UTC plus 2) 2016/06/01 14:40:38 Done.
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

Powered by Google App Engine
This is Rietveld 408576698