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

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

Issue 18348016: If requested, report network interfaces to management server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address feedback. Created 7 years, 5 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/chromeos/policy/device_policy_decoder_chromeos.h" 5 #include "chrome/browser/chromeos/policy/device_policy_decoder_chromeos.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 Value::CreateBooleanValue(container.report_boot_mode()), 366 Value::CreateBooleanValue(container.report_boot_mode()),
367 NULL); 367 NULL);
368 } 368 }
369 if (container.has_report_location()) { 369 if (container.has_report_location()) {
370 policies->Set(key::kReportDeviceLocation, 370 policies->Set(key::kReportDeviceLocation,
371 POLICY_LEVEL_MANDATORY, 371 POLICY_LEVEL_MANDATORY,
372 POLICY_SCOPE_MACHINE, 372 POLICY_SCOPE_MACHINE,
373 Value::CreateBooleanValue(container.report_location()), 373 Value::CreateBooleanValue(container.report_location()),
374 NULL); 374 NULL);
375 } 375 }
376 if (container.has_report_network_interfaces()) {
377 policies->Set(key::kReportDeviceNetworkInterfaces,
378 POLICY_LEVEL_MANDATORY,
379 POLICY_SCOPE_MACHINE,
380 Value::CreateBooleanValue(
381 container.report_network_interfaces()),
382 NULL);
383 }
376 } 384 }
377 } 385 }
378 386
379 void DecodeAutoUpdatePolicies(const em::ChromeDeviceSettingsProto& policy, 387 void DecodeAutoUpdatePolicies(const em::ChromeDeviceSettingsProto& policy,
380 PolicyMap* policies) { 388 PolicyMap* policies) {
381 if (policy.has_release_channel()) { 389 if (policy.has_release_channel()) {
382 const em::ReleaseChannelProto& container(policy.release_channel()); 390 const em::ReleaseChannelProto& container(policy.release_channel());
383 if (container.has_release_channel()) { 391 if (container.has_release_channel()) {
384 std::string channel(container.release_channel()); 392 std::string channel(container.release_channel());
385 policies->Set(key::kChromeOsReleaseChannel, 393 policies->Set(key::kChromeOsReleaseChannel,
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 DecodeLoginPolicies(policy, policies); 641 DecodeLoginPolicies(policy, policies);
634 DecodeKioskPolicies(policy, policies, install_attributes); 642 DecodeKioskPolicies(policy, policies, install_attributes);
635 DecodeNetworkPolicies(policy, policies, install_attributes); 643 DecodeNetworkPolicies(policy, policies, install_attributes);
636 DecodeReportingPolicies(policy, policies); 644 DecodeReportingPolicies(policy, policies);
637 DecodeAutoUpdatePolicies(policy, policies); 645 DecodeAutoUpdatePolicies(policy, policies);
638 DecodeAccessibilityPolicies(policy, policies); 646 DecodeAccessibilityPolicies(policy, policies);
639 DecodeGenericPolicies(policy, policies); 647 DecodeGenericPolicies(policy, policies);
640 } 648 }
641 649
642 } // namespace policy 650 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698