| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/system/timezone_util.h" | 5 #include "chrome/browser/chromeos/system/timezone_util.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
| 12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
| 13 #include "base/prefs/pref_service.h" | |
| 14 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 15 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 17 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
| 18 #include "base/values.h" | 17 #include "base/values.h" |
| 19 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
| 20 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 19 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 21 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 20 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 22 #include "chrome/browser/chromeos/settings/cros_settings.h" | 21 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 23 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
| 24 #include "chrome/grit/generated_resources.h" | 23 #include "chrome/grit/generated_resources.h" |
| 25 #include "chromeos/settings/timezone_settings.h" | 24 #include "chromeos/settings/timezone_settings.h" |
| 26 #include "chromeos/timezone/timezone_request.h" | 25 #include "chromeos/timezone/timezone_request.h" |
| 26 #include "components/prefs/pref_service.h" |
| 27 #include "components/user_manager/user_manager.h" | 27 #include "components/user_manager/user_manager.h" |
| 28 #include "third_party/icu/source/common/unicode/ures.h" | 28 #include "third_party/icu/source/common/unicode/ures.h" |
| 29 #include "third_party/icu/source/common/unicode/utypes.h" | 29 #include "third_party/icu/source/common/unicode/utypes.h" |
| 30 #include "third_party/icu/source/i18n/unicode/calendar.h" | 30 #include "third_party/icu/source/i18n/unicode/calendar.h" |
| 31 #include "third_party/icu/source/i18n/unicode/timezone.h" | 31 #include "third_party/icu/source/i18n/unicode/timezone.h" |
| 32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
| 33 | 33 |
| 34 namespace { | 34 namespace { |
| 35 | 35 |
| 36 struct UResClose { | 36 struct UResClose { |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 VLOG(1) << "Refresh TimeZone: setting timezone to '" << timezone->timeZoneId | 200 VLOG(1) << "Refresh TimeZone: setting timezone to '" << timezone->timeZoneId |
| 201 << "'"; | 201 << "'"; |
| 202 | 202 |
| 203 chromeos::system::TimezoneSettings::GetInstance()->SetTimezoneFromID( | 203 chromeos::system::TimezoneSettings::GetInstance()->SetTimezoneFromID( |
| 204 base::UTF8ToUTF16(timezone->timeZoneId)); | 204 base::UTF8ToUTF16(timezone->timeZoneId)); |
| 205 } | 205 } |
| 206 } | 206 } |
| 207 | 207 |
| 208 } // namespace system | 208 } // namespace system |
| 209 } // namespace chromeos | 209 } // namespace chromeos |
| OLD | NEW |