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

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

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again 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 | « ui/base/cursor/cursor_loader_win.cc ('k') | ui/base/l10n/l10n_util.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> 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_
OLDNEW
« no previous file with comments | « ui/base/cursor/cursor_loader_win.cc ('k') | ui/base/l10n/l10n_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698