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

Unified Diff: components/policy/core/common/policy_map.cc

Issue 88423002: Add CloudExternalDataPolicyObserverChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace fix. Created 7 years, 1 month 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/policy_map.cc
diff --git a/components/policy/core/common/policy_map.cc b/components/policy/core/common/policy_map.cc
index a7e6a16ccf4c34ea4a45553408cad3de83d0aa24..f8a465ebdfd831b546c776fdacd1e598ff3dfc0b 100644
--- a/components/policy/core/common/policy_map.cc
+++ b/components/policy/core/common/policy_map.cc
@@ -11,6 +11,19 @@
namespace policy {
+scoped_ptr<PolicyMap::Entry> PolicyMap::Entry::DeepCopy() const {
+ scoped_ptr<Entry> copy(new Entry);
+ copy->level = level;
+ copy->scope = scope;
+ if (value)
+ copy->value = value->DeepCopy();
+ if (external_data_fetcher) {
+ copy->external_data_fetcher =
+ new ExternalDataFetcher(*external_data_fetcher);
+ }
+ return copy.Pass();
+}
+
bool PolicyMap::Entry::has_higher_priority_than(
const PolicyMap::Entry& other) const {
if (level == other.level)

Powered by Google App Engine
This is Rietveld 408576698