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

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

Issue 9289017: Apply individual policies for the various parts of device status reports. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698