| 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 "chromeos/settings/timezone_settings.h" | 5 #include "chromeos/settings/timezone_settings.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 | 10 |
| 9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 10 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 11 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 12 #include "base/location.h" | 14 #include "base/location.h" |
| 13 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/singleton.h" | 18 #include "base/memory/singleton.h" |
| 16 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
| 17 #include "base/stl_util.h" | 20 #include "base/stl_util.h" |
| 18 #include "base/strings/string_util.h" | 21 #include "base/strings/string_util.h" |
| 19 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
| 20 #include "base/sys_info.h" | 23 #include "base/sys_info.h" |
| 21 #include "base/task_runner.h" | 24 #include "base/task_runner.h" |
| 22 #include "base/threading/worker_pool.h" | 25 #include "base/threading/worker_pool.h" |
| 23 #include "chromeos/settings/timezone_settings_helper.h" | 26 #include "chromeos/settings/timezone_settings_helper.h" |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 | 474 |
| 472 // static | 475 // static |
| 473 base::string16 TimezoneSettings::GetTimezoneID(const icu::TimeZone& timezone) { | 476 base::string16 TimezoneSettings::GetTimezoneID(const icu::TimeZone& timezone) { |
| 474 icu::UnicodeString id; | 477 icu::UnicodeString id; |
| 475 timezone.getID(id); | 478 timezone.getID(id); |
| 476 return base::string16(id.getBuffer(), id.length()); | 479 return base::string16(id.getBuffer(), id.length()); |
| 477 } | 480 } |
| 478 | 481 |
| 479 } // namespace system | 482 } // namespace system |
| 480 } // namespace chromeos | 483 } // namespace chromeos |
| OLD | NEW |