OLD | NEW |
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/policy/device_policy_cache.h" | 5 #include "chrome/browser/policy/device_policy_cache.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 POLICY_SCOPE_MACHINE, | 377 POLICY_SCOPE_MACHINE, |
378 Value::CreateBooleanValue(enabled)); | 378 Value::CreateBooleanValue(enabled)); |
379 } | 379 } |
380 if (policy.device_reporting().has_report_activity_times()) { | 380 if (policy.device_reporting().has_report_activity_times()) { |
381 bool enabled = policy.device_reporting().report_activity_times(); | 381 bool enabled = policy.device_reporting().report_activity_times(); |
382 policies->Set(key::kReportDeviceActivityTimes, | 382 policies->Set(key::kReportDeviceActivityTimes, |
383 POLICY_LEVEL_MANDATORY, | 383 POLICY_LEVEL_MANDATORY, |
384 POLICY_SCOPE_MACHINE, | 384 POLICY_SCOPE_MACHINE, |
385 Value::CreateBooleanValue(enabled)); | 385 Value::CreateBooleanValue(enabled)); |
386 } | 386 } |
| 387 if (policy.device_reporting().has_report_boot_mode()) { |
| 388 bool enabled = policy.device_reporting().report_boot_mode(); |
| 389 policies->Set(key::kReportDeviceBootMode, |
| 390 POLICY_LEVEL_MANDATORY, |
| 391 POLICY_SCOPE_MACHINE, |
| 392 Value::CreateBooleanValue(enabled)); |
| 393 } |
387 } | 394 } |
388 | 395 |
389 } | 396 } |
390 | 397 |
391 } // namespace policy | 398 } // namespace policy |
OLD | NEW |