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

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

Issue 303993005: Add browser test for ChromeResourceDispatcherHostDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix use-after-free of ResourceDispatcherHostDelegate in test. Created 6 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "components/policy/core/common/cloud/policy_header_service.h" 5 #include "components/policy/core/common/cloud/policy_header_service.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "components/policy/core/common/cloud/cloud_policy_store.h" 10 #include "components/policy/core/common/cloud/cloud_policy_store.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 helpers_.begin(); it != helpers_.end(); ++it) { 91 helpers_.begin(); it != helpers_.end(); ++it) {
92 (*it)->UpdateHeader(new_header); 92 (*it)->UpdateHeader(new_header);
93 } 93 }
94 } 94 }
95 } 95 }
96 96
97 void PolicyHeaderService::OnStoreError(CloudPolicyStore* store) { 97 void PolicyHeaderService::OnStoreError(CloudPolicyStore* store) {
98 // Do nothing on errors. 98 // Do nothing on errors.
99 } 99 }
100 100
101 std::vector<PolicyHeaderIOHelper*> PolicyHeaderService::GetHelpersForTest() {
102 return helpers_;
103 }
104
101 } // namespace policy 105 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698