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

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

Issue 11946017: Remove old cloud policy code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits. Created 7 years, 11 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/policy/testing_cloud_policy_subsystem.h"
6
7 #include "chrome/browser/policy/cloud_policy_controller.h"
8 #include "chrome/browser/policy/device_token_fetcher.h"
9 #include "chrome/browser/policy/logging_work_scheduler.h"
10
11 namespace policy {
12
13 TestingCloudPolicySubsystem::TestingCloudPolicySubsystem(
14 CloudPolicyDataStore* data_store,
15 CloudPolicyCacheBase* policy_cache,
16 const std::string& device_management_url,
17 EventLogger* logger)
18 : CloudPolicySubsystem(),
19 logger_(logger) {
20 Initialize(data_store, policy_cache, device_management_url);
21 }
22
23 void TestingCloudPolicySubsystem::CreateDeviceTokenFetcher() {
24 device_token_fetcher_.reset(
25 new DeviceTokenFetcher(device_management_service_.get(),
26 cloud_policy_cache_.get(),
27 data_store_,
28 notifier_.get(),
29 new LoggingWorkScheduler(logger_)));
30 }
31
32 void TestingCloudPolicySubsystem::CreateCloudPolicyController() {
33 cloud_policy_controller_.reset(
34 new CloudPolicyController(device_management_service_.get(),
35 cloud_policy_cache_.get(),
36 device_token_fetcher_.get(),
37 data_store_,
38 notifier_.get(),
39 new LoggingWorkScheduler(logger_)));
40 }
41
42 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/testing_cloud_policy_subsystem.h ('k') | chrome/browser/policy/testing_policy_url_fetcher_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698