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

Side by Side Diff: chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc

Issue 762863002: Removed policy::PolicyNamespaceKey. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pass values in ctors Created 6 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
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/chromeos/policy/device_cloud_policy_manager_chromeos.h" 5 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/port.h" 10 #include "base/port.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 chromeos::AutoEnrollmentController::MODE_FORCED_RE_ENROLLMENT; 92 chromeos::AutoEnrollmentController::MODE_FORCED_RE_ENROLLMENT;
93 } 93 }
94 94
95 } // namespace 95 } // namespace
96 96
97 DeviceCloudPolicyManagerChromeOS::DeviceCloudPolicyManagerChromeOS( 97 DeviceCloudPolicyManagerChromeOS::DeviceCloudPolicyManagerChromeOS(
98 scoped_ptr<DeviceCloudPolicyStoreChromeOS> store, 98 scoped_ptr<DeviceCloudPolicyStoreChromeOS> store,
99 const scoped_refptr<base::SequencedTaskRunner>& task_runner, 99 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
100 ServerBackedStateKeysBroker* state_keys_broker) 100 ServerBackedStateKeysBroker* state_keys_broker)
101 : CloudPolicyManager( 101 : CloudPolicyManager(
102 PolicyNamespaceKey(dm_protocol::kChromeDevicePolicyType, 102 dm_protocol::kChromeDevicePolicyType,
103 std::string()), 103 std::string(),
104 store.get(), 104 store.get(),
105 task_runner, 105 task_runner,
106 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), 106 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
107 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)), 107 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)),
108 device_store_(store.Pass()), 108 device_store_(store.Pass()),
109 state_keys_broker_(state_keys_broker), 109 state_keys_broker_(state_keys_broker),
110 local_state_(NULL) { 110 local_state_(nullptr) {
111 } 111 }
112 112
113 DeviceCloudPolicyManagerChromeOS::~DeviceCloudPolicyManagerChromeOS() {} 113 DeviceCloudPolicyManagerChromeOS::~DeviceCloudPolicyManagerChromeOS() {}
114 114
115 void DeviceCloudPolicyManagerChromeOS::Initialize(PrefService* local_state) { 115 void DeviceCloudPolicyManagerChromeOS::Initialize(PrefService* local_state) {
116 CHECK(local_state); 116 CHECK(local_state);
117 117
118 local_state_ = local_state; 118 local_state_ = local_state;
119 119
120 state_keys_update_subscription_ = state_keys_broker_->RegisterUpdateCallback( 120 state_keys_update_subscription_ = state_keys_broker_->RegisterUpdateCallback(
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 local_state_->SetBoolean( 255 local_state_->SetBoolean(
256 prefs::kDeviceEnrollmentCanExit, 256 prefs::kDeviceEnrollmentCanExit,
257 GetMachineFlag(chromeos::system::kOemCanExitEnterpriseEnrollmentKey, 257 GetMachineFlag(chromeos::system::kOemCanExitEnterpriseEnrollmentKey,
258 false)); 258 false));
259 } 259 }
260 } 260 }
261 } 261 }
262 } 262 }
263 263
264 } // namespace policy 264 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698