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

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

Issue 1492043002: Introduced switches for Master/Slave bootstrapping process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address dzhioev@'s comment. Created 5 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/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 178 }
179 179
180 bool DeviceCloudPolicyManagerChromeOS::IsRemoraRequisition() const { 180 bool DeviceCloudPolicyManagerChromeOS::IsRemoraRequisition() const {
181 return GetDeviceRequisition() == kRemoraRequisition; 181 return GetDeviceRequisition() == kRemoraRequisition;
182 } 182 }
183 183
184 bool DeviceCloudPolicyManagerChromeOS::IsSharkRequisition() const { 184 bool DeviceCloudPolicyManagerChromeOS::IsSharkRequisition() const {
185 return GetDeviceRequisition() == kSharkRequisition; 185 return GetDeviceRequisition() == kSharkRequisition;
186 } 186 }
187 187
188 void DeviceCloudPolicyManagerChromeOS::SetDeviceEnrollmentAutoStart() {
189 if (local_state_) {
190 local_state_->SetBoolean(prefs::kDeviceEnrollmentAutoStart, true);
191 local_state_->SetBoolean(prefs::kDeviceEnrollmentCanExit, false);
192 }
193 }
194
188 void DeviceCloudPolicyManagerChromeOS::Shutdown() { 195 void DeviceCloudPolicyManagerChromeOS::Shutdown() {
189 status_uploader_.reset(); 196 status_uploader_.reset();
190 syslog_uploader_.reset(); 197 syslog_uploader_.reset();
191 heartbeat_scheduler_.reset(); 198 heartbeat_scheduler_.reset();
192 state_keys_update_subscription_.reset(); 199 state_keys_update_subscription_.reset();
193 CloudPolicyManager::Shutdown(); 200 CloudPolicyManager::Shutdown();
194 } 201 }
195 202
196 // static 203 // static
197 void DeviceCloudPolicyManagerChromeOS::RegisterPrefs( 204 void DeviceCloudPolicyManagerChromeOS::RegisterPrefs(
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 make_scoped_ptr(new DeviceStatusCollector( 347 make_scoped_ptr(new DeviceStatusCollector(
341 local_state_, chromeos::system::StatisticsProvider::GetInstance(), 348 local_state_, chromeos::system::StatisticsProvider::GetInstance(),
342 DeviceStatusCollector::LocationUpdateRequester(), 349 DeviceStatusCollector::LocationUpdateRequester(),
343 DeviceStatusCollector::VolumeInfoFetcher(), 350 DeviceStatusCollector::VolumeInfoFetcher(),
344 DeviceStatusCollector::CPUStatisticsFetcher(), 351 DeviceStatusCollector::CPUStatisticsFetcher(),
345 DeviceStatusCollector::CPUTempFetcher())), 352 DeviceStatusCollector::CPUTempFetcher())),
346 task_runner_)); 353 task_runner_));
347 } 354 }
348 355
349 } // namespace policy 356 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698