Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |