timezone_settings_helper.h 847 B

1234567891011121314151617181920212223242526
  1. // Copyright 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_COMPONENTS_SETTINGS_TIMEZONE_SETTINGS_HELPER_H_
  5. #define ASH_COMPONENTS_SETTINGS_TIMEZONE_SETTINGS_HELPER_H_
  6. #include <memory>
  7. #include <vector>
  8. #include "third_party/icu/source/i18n/unicode/timezone.h"
  9. namespace ash {
  10. namespace system {
  11. // Return a timezone in the list matching |timezone| in terms of
  12. // id and canonical id. If both fail, return a timezone with
  13. // the same rules. Otherwise, return null.
  14. const icu::TimeZone* GetKnownTimezoneOrNull(
  15. const icu::TimeZone& timezone,
  16. const std::vector<std::unique_ptr<icu::TimeZone>>& timezone_list);
  17. } // namespace system
  18. } // namespace ash
  19. #endif // ASH_COMPONENTS_SETTINGS_TIMEZONE_SETTINGS_HELPER_H_