Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: ui/base/l10n/formatter.h

Issue 2742463002: Change ui/base/l10n/formatter LazyInstance to Leaky (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/base/l10n/time_format.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>::DestructorAtExit 109 extern UI_BASE_EXPORT base::LazyInstance<FormatterContainer>::Leaky g_container;
110 g_container;
111 110
112 // For use in unit tests only. 111 // For use in unit tests only.
113 extern UI_BASE_EXPORT bool formatter_force_fallback; 112 extern UI_BASE_EXPORT bool formatter_force_fallback;
114 113
115 } // namespace ui 114 } // namespace ui
116 115
117 #endif // UI_BASE_L10N_FORMATTER_H_ 116 #endif // UI_BASE_L10N_FORMATTER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/l10n/time_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698