Chromium Code Reviews
DescriptionMake CloudPolicyValidator memory management clearer
1. Create() becomes returning a unique_ptr instead of a raw
pointer.
2. StartValidation() becomes accepting the validator as a
unique_ptr argument instead of taking ownership over "this".
This should prevent from making bugs leading to memory
leaks or double freeing, which were hard to notice with the
old interface.
3. Minor cleanup related to C++11 features.
No change of behavior is expected to be introduced.
BUG=710679
TEST=existing tests
Review-Url: https://codereview.chromium.org/2817643002
Cr-Commit-Position: refs/heads/master@{#465579}
Committed: https://chromium.googlesource.com/chromium/src/+/18f3a62dabe898a03ad69569feb0ce37c53fc001
Patch Set 1 #Patch Set 2 : Cleaner memory management in CloudPolicyValidator #
Total comments: 4
Messages
Total messages: 20 (14 generated)
|