| 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)
|
|
|