| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file contains implementation details, the public interface is declared | 5 // This file contains implementation details, the public interface is declared |
| 6 // in time_format.h. | 6 // in time_format.h. |
| 7 | 7 |
| 8 #ifndef UI_BASE_L10N_FORMATTER_H_ | 8 #ifndef UI_BASE_L10N_FORMATTER_H_ |
| 9 #define UI_BASE_L10N_FORMATTER_H_ | 9 #define UI_BASE_L10N_FORMATTER_H_ |
| 10 | 10 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void Shutdown(); | 99 void Shutdown(); |
| 100 | 100 |
| 101 std::unique_ptr<Formatter> formatter_[TimeFormat::FORMAT_COUNT] | 101 std::unique_ptr<Formatter> formatter_[TimeFormat::FORMAT_COUNT] |
| 102 [TimeFormat::LENGTH_COUNT]; | 102 [TimeFormat::LENGTH_COUNT]; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(FormatterContainer); | 104 DISALLOW_COPY_AND_ASSIGN(FormatterContainer); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 // Windows compilation requires full definition of FormatterContainer before | 107 // Windows compilation requires full definition of FormatterContainer before |
| 108 // LazyInstance<FormatterContainter> may be declared. | 108 // LazyInstance<FormatterContainter> may be declared. |
| 109 extern UI_BASE_EXPORT base::LazyInstance<FormatterContainer> g_container; | 109 extern UI_BASE_EXPORT base::LazyInstance<FormatterContainer>::DestructorAtExit |
| 110 g_container; |
| 110 | 111 |
| 111 // For use in unit tests only. | 112 // For use in unit tests only. |
| 112 extern UI_BASE_EXPORT bool formatter_force_fallback; | 113 extern UI_BASE_EXPORT bool formatter_force_fallback; |
| 113 | 114 |
| 114 } // namespace ui | 115 } // namespace ui |
| 115 | 116 |
| 116 #endif // UI_BASE_L10N_FORMATTER_H_ | 117 #endif // UI_BASE_L10N_FORMATTER_H_ |
| OLD | NEW |