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

Unified Diff: chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h

Issue 1940153002: Use std::unique_ptr to express ownership of base::Value in PolicyMap::Entry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another-fix Created 4 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: chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
diff --git a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
index 8ddbeb169b2e8278da081653d7544cc51b6526cf..9081dddef236a7fcb58c3070d194ccf4c371341b 100644
--- a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
+++ b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
@@ -65,7 +65,8 @@ class NetworkConfigurationPolicyHandler : public TypeCheckingPolicyHandler {
// that contains a pretty-printed and sanitized version. In particular, we
// remove any Passphrases that may be contained in the JSON. Ownership of the
// return value is transferred to the caller.
- static base::Value* SanitizeNetworkConfig(const base::Value* config);
+ static std::unique_ptr<base::Value> SanitizeNetworkConfig(
+ const base::Value* config);
// The kind of ONC source that this handler represents. ONCSource
// distinguishes between user and device policy.

Powered by Google App Engine
This is Rietveld 408576698