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

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

Issue 12209070: Fix cloud policy duplicate registrations issue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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) 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 "chrome/browser/policy/mock_cloud_policy_client.h" 5 #include "chrome/browser/policy/mock_cloud_policy_client.h"
6 #include "chrome/browser/policy/proto/device_management_backend.pb.h" 6 #include "chrome/browser/policy/proto/device_management_backend.pb.h"
7 7
8 namespace em = enterprise_management; 8 namespace em = enterprise_management;
9 9
10 namespace policy { 10 namespace policy {
(...skipping 11 matching lines...) Expand all
22 const em::PolicyFetchResponse& policy) { 22 const em::PolicyFetchResponse& policy) {
23 em::PolicyFetchResponse*& response = responses_[policy_ns_key]; 23 em::PolicyFetchResponse*& response = responses_[policy_ns_key];
24 delete response; 24 delete response;
25 response = new enterprise_management::PolicyFetchResponse(policy); 25 response = new enterprise_management::PolicyFetchResponse(policy);
26 } 26 }
27 27
28 void MockCloudPolicyClient::SetStatus(DeviceManagementStatus status) { 28 void MockCloudPolicyClient::SetStatus(DeviceManagementStatus status) {
29 status_ = status; 29 status_ = status;
30 } 30 }
31 31
32 MockCloudPolicyClientObserver::MockCloudPolicyClientObserver() {}
33
34 MockCloudPolicyClientObserver::~MockCloudPolicyClientObserver() {}
35
32 } // namespace policy 36 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/mock_cloud_policy_client.h ('k') | chrome/browser/policy/mock_device_management_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698