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

Unified Diff: chromeos/network/policy_util.h

Issue 2387783002: Remove stl_util's deletion functions from chromeos/. (Closed)
Patch Set: armansito Created 4 years, 2 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
« no previous file with comments | « chromeos/network/policy_applicator.cc ('k') | chromeos/network/policy_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/policy_util.h
diff --git a/chromeos/network/policy_util.h b/chromeos/network/policy_util.h
index dad4803fb8fe347d2870fc2f329039cd714db0eb..109fbabae7ee8422ca426ea70d46864f33afbcd3 100644
--- a/chromeos/network/policy_util.h
+++ b/chromeos/network/policy_util.h
@@ -9,7 +9,6 @@
#include <memory>
#include <string>
-
namespace base {
class DictionaryValue;
}
@@ -20,7 +19,8 @@ struct NetworkProfile;
namespace policy_util {
-typedef std::map<std::string, const base::DictionaryValue*> GuidToPolicyMap;
+using GuidToPolicyMap =
+ std::map<std::string, std::unique_ptr<base::DictionaryValue>>;
// Creates a managed ONC dictionary from the given arguments. Depending on the
// profile type, the policies are assumed to come from the user or device policy
@@ -36,7 +36,7 @@ std::unique_ptr<base::DictionaryValue> CreateManagedONC(
const NetworkProfile* profile);
// Adds properties to |shill_properties_to_update|, which are enforced on an
-// unamaged network by the global config |global_network_policy| of the policy.
+// unmanaged network by the global config |global_network_policy| of the policy.
// |shill_dictionary| are the network's current properties read from Shill.
void SetShillPropertiesForGlobalPolicy(
const base::DictionaryValue& shill_dictionary,
« no previous file with comments | « chromeos/network/policy_applicator.cc ('k') | chromeos/network/policy_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698