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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 entry != container.start_up_urls().end(); | 715 entry != container.start_up_urls().end(); |
716 ++entry) { | 716 ++entry) { |
717 urls->Append(Value::CreateStringValue(*entry)); | 717 urls->Append(Value::CreateStringValue(*entry)); |
718 } | 718 } |
719 policies->Set(key::kDeviceStartUpUrls, | 719 policies->Set(key::kDeviceStartUpUrls, |
720 POLICY_LEVEL_MANDATORY, | 720 POLICY_LEVEL_MANDATORY, |
721 POLICY_SCOPE_MACHINE, | 721 POLICY_SCOPE_MACHINE, |
722 urls); | 722 urls); |
723 } | 723 } |
724 } | 724 } |
725 | |
726 if (policy.has_system_timezone()) { | |
727 if (policy.system_timezone().has_timezone()) { | |
728 policies->Set(key::kDeviceTimezone, | |
729 POLICY_LEVEL_MANDATORY, | |
730 POLICY_SCOPE_MACHINE, | |
731 Value::CreateStringValue( | |
732 policy.system_timezone().timezone())); | |
733 } | |
734 } | |
735 } | 725 } |
736 | 726 |
737 } // namespace policy | 727 } // namespace policy |
OLD | NEW |