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> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
10 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
11 #include "base/prefs/pref_service.h" | 13 #include "base/prefs/pref_service.h" |
12 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
13 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
15 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
16 #include "base/values.h" | 18 #include "base/values.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 VLOG(1) << "Refresh TimeZone: setting timezone to '" << timezone->timeZoneId | 200 VLOG(1) << "Refresh TimeZone: setting timezone to '" << timezone->timeZoneId |
199 << "'"; | 201 << "'"; |
200 | 202 |
201 chromeos::system::TimezoneSettings::GetInstance()->SetTimezoneFromID( | 203 chromeos::system::TimezoneSettings::GetInstance()->SetTimezoneFromID( |
202 base::UTF8ToUTF16(timezone->timeZoneId)); | 204 base::UTF8ToUTF16(timezone->timeZoneId)); |
203 } | 205 } |
204 } | 206 } |
205 | 207 |
206 } // namespace system | 208 } // namespace system |
207 } // namespace chromeos | 209 } // namespace chromeos |
OLD | NEW |