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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_service.cc

Issue 108563005: Move the cloud policy protobufs into the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "components/policy/core/common/cloud/cloud_policy_service.h" 5 #include "components/policy/core/common/cloud/cloud_policy_service.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" 8 #include "policy/proto/device_management_backend.pb.h"
9 9
10 namespace em = enterprise_management; 10 namespace em = enterprise_management;
11 11
12 namespace policy { 12 namespace policy {
13 13
14 CloudPolicyService::CloudPolicyService(const PolicyNamespaceKey& policy_ns_key, 14 CloudPolicyService::CloudPolicyService(const PolicyNamespaceKey& policy_ns_key,
15 CloudPolicyClient* client, 15 CloudPolicyClient* client,
16 CloudPolicyStore* store) 16 CloudPolicyStore* store)
17 : policy_ns_key_(policy_ns_key), 17 : policy_ns_key_(policy_ns_key),
18 client_(client), 18 client_(client),
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 void CloudPolicyService::AddObserver(Observer* observer) { 152 void CloudPolicyService::AddObserver(Observer* observer) {
153 observers_.AddObserver(observer); 153 observers_.AddObserver(observer);
154 } 154 }
155 155
156 void CloudPolicyService::RemoveObserver(Observer* observer) { 156 void CloudPolicyService::RemoveObserver(Observer* observer) {
157 observers_.RemoveObserver(observer); 157 observers_.RemoveObserver(observer);
158 } 158 }
159 159
160 } // namespace policy 160 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698