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

Side by Side Diff: chrome/browser/policy/policy_domain_descriptor.cc

Issue 23045003: Moved chrome/common/policy to components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/policy/policy_domain_descriptor.h" 5 #include "chrome/browser/policy/policy_domain_descriptor.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/policy/policy_bundle.h" 10 #include "chrome/browser/policy/policy_bundle.h"
11 #include "chrome/browser/policy/policy_map.h" 11 #include "chrome/browser/policy/policy_map.h"
12 #include "chrome/common/policy/policy_schema.h" 12 #include "components/policy/core/common/policy_schema.h"
13 13
14 namespace policy { 14 namespace policy {
15 15
16 namespace { 16 namespace {
17 17
18 bool Matches(const PolicySchema* schema, const base::Value& value) { 18 bool Matches(const PolicySchema* schema, const base::Value& value) {
19 if (!schema) { 19 if (!schema) {
20 // Schema not found, invalid entry. 20 // Schema not found, invalid entry.
21 return false; 21 return false;
22 } 22 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 map->Erase(policy_name); 93 map->Erase(policy_name);
94 } 94 }
95 } 95 }
96 } 96 }
97 97
98 PolicyDomainDescriptor::~PolicyDomainDescriptor() { 98 PolicyDomainDescriptor::~PolicyDomainDescriptor() {
99 STLDeleteValues(&schema_map_); 99 STLDeleteValues(&schema_map_);
100 } 100 }
101 101
102 } // namespace policy 102 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698