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

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

Issue 1276853003: Revert of Send GCM id to DMServer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/heartbeat_scheduler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 new chromeos::attestation::AttestationPolicyObserver(client())); 249 new chromeos::attestation::AttestationPolicyObserver(client()));
250 250
251 // Enable device reporting and status monitoring for enterprise enrolled 251 // Enable device reporting and status monitoring for enterprise enrolled
252 // devices. We want to create these objects for enrolled devices, even if 252 // devices. We want to create these objects for enrolled devices, even if
253 // monitoring is currently inactive, in case monitoring is turned back on in 253 // monitoring is currently inactive, in case monitoring is turned back on in
254 // a future policy fetch - the classes themselves track the current state of 254 // a future policy fetch - the classes themselves track the current state of
255 // the monitoring settings and only perform monitoring if it is active. 255 // the monitoring settings and only perform monitoring if it is active.
256 if (install_attributes->IsEnterpriseDevice()) { 256 if (install_attributes->IsEnterpriseDevice()) {
257 CreateStatusUploader(); 257 CreateStatusUploader();
258 syslog_uploader_.reset(new SystemLogUploader(nullptr, task_runner_)); 258 syslog_uploader_.reset(new SystemLogUploader(nullptr, task_runner_));
259 heartbeat_scheduler_.reset(new HeartbeatScheduler( 259 heartbeat_scheduler_.reset(
260 g_browser_process->gcm_driver(), client(), 260 new HeartbeatScheduler(g_browser_process->gcm_driver(),
261 install_attributes->GetDomain(), install_attributes->GetDeviceId(), 261 install_attributes->GetDomain(),
262 task_runner_)); 262 install_attributes->GetDeviceId(),
263 task_runner_));
263 } 264 }
264 265
265 NotifyConnected(); 266 NotifyConnected();
266 } 267 }
267 268
268 void DeviceCloudPolicyManagerChromeOS::Unregister( 269 void DeviceCloudPolicyManagerChromeOS::Unregister(
269 const UnregisterCallback& callback) { 270 const UnregisterCallback& callback) {
270 if (!service()) { 271 if (!service()) {
271 LOG(ERROR) << "Tried to unregister but DeviceCloudPolicyManagerChromeOS is " 272 LOG(ERROR) << "Tried to unregister but DeviceCloudPolicyManagerChromeOS is "
272 << "not connected."; 273 << "not connected.";
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 make_scoped_ptr(new DeviceStatusCollector( 340 make_scoped_ptr(new DeviceStatusCollector(
340 local_state_, chromeos::system::StatisticsProvider::GetInstance(), 341 local_state_, chromeos::system::StatisticsProvider::GetInstance(),
341 DeviceStatusCollector::LocationUpdateRequester(), 342 DeviceStatusCollector::LocationUpdateRequester(),
342 DeviceStatusCollector::VolumeInfoFetcher(), 343 DeviceStatusCollector::VolumeInfoFetcher(),
343 DeviceStatusCollector::CPUStatisticsFetcher(), 344 DeviceStatusCollector::CPUStatisticsFetcher(),
344 DeviceStatusCollector::CPUTempFetcher())), 345 DeviceStatusCollector::CPUTempFetcher())),
345 task_runner_)); 346 task_runner_));
346 } 347 }
347 348
348 } // namespace policy 349 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/heartbeat_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698