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

Unified Diff: chrome/browser/policy/browser_policy_connector.cc

Issue 12300016: Ignoring the timezone policy if it is set to an empty string. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial patch. Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/policy/proto/chrome_device_policy.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/browser_policy_connector.cc
diff --git a/chrome/browser/policy/browser_policy_connector.cc b/chrome/browser/policy/browser_policy_connector.cc
index c66516f9dbe6d99cd88aa58f5107d2d5e5197b6d..2a7182d80f14e35d9e3bebc87902a0ed5f938453 100644
--- a/chrome/browser/policy/browser_policy_connector.cc
+++ b/chrome/browser/policy/browser_policy_connector.cc
@@ -474,8 +474,9 @@ void BrowserPolicyConnector::SetTimezoneIfPolicyAvailable() {
return;
std::string timezone;
- if (chromeos::CrosSettings::Get()->GetString(
- chromeos::kSystemTimezonePolicy, &timezone)) {
+ if (chromeos::CrosSettings::Get()->GetString(chromeos::kSystemTimezonePolicy,
+ &timezone) &&
+ !timezone.empty()) {
chromeos::system::TimezoneSettings::GetInstance()->SetTimezoneFromID(
UTF8ToUTF16(timezone));
}
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/policy/proto/chrome_device_policy.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698