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

Unified Diff: components/policy/core/common/preg_parser.h

Issue 2860973002: Allow PolicyLoadStatusSample to override reporting method (Closed)
Patch Set: Changed callback implementation to class hierarchy implementation. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/policy/core/common/preg_parser.h
diff --git a/components/policy/core/common/preg_parser.h b/components/policy/core/common/preg_parser.h
index bf0367ba8fe5b28ba7495af48ac95257b579e812..cf9bb37b150f654bcc666357e6b6bf544c3232fd 100644
--- a/components/policy/core/common/preg_parser.h
+++ b/components/policy/core/common/preg_parser.h
@@ -37,18 +37,17 @@ POLICY_EXPORT extern const char kPRegFileHeader[8];
POLICY_EXPORT bool ReadFile(const base::FilePath& file_path,
const base::string16& root,
RegistryDict* dict,
- PolicyLoadStatusSample* status_sample);
+ PolicyLoadStatusSampler* status);
// Similar to ReadFile, but reads from |preg_data| of length |preg_data_size|
-// instead of a file, and writes status to the enum PolicyLoadStatus, which does
-// not record UMA stats, unlike |PolicyLoadStatusSample|. |debug_name| is
-// printed out along with error messages. Used internally and for testing only.
-// All other callers should use ReadFile instead.
+// instead of a file. |debug_name| is printed out along with error messages.
+// Used internally and for testing only. All other callers should use ReadFile
+// instead.
POLICY_EXPORT bool ReadDataInternal(const uint8_t* preg_data,
size_t preg_data_size,
const base::string16& root,
RegistryDict* dict,
- PolicyLoadStatus* status,
+ PolicyLoadStatusSampler* status,
const std::string& debug_name);
} // namespace preg_parser

Powered by Google App Engine
This is Rietveld 408576698