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

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

Issue 10827050: Added a timezone policy and pyauto tests for it. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments. Created 8 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
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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
725 } 735 }
726 736
727 } // namespace policy 737 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/browser_policy_connector.cc ('k') | chrome/browser/policy/proto/chrome_device_policy.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698