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

Unified Diff: ui/base/l10n/l10n_util.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/l10n/formatter.h ('k') | ui/base/l10n/l10n_util_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util.cc
diff --git a/ui/base/l10n/l10n_util.cc b/ui/base/l10n/l10n_util.cc
index ad0ad0ed9d12d175bc9660839a628ab7fe0bf234..ec581ba5fc0f5de3ea4528711b6938901e1e85db 100644
--- a/ui/base/l10n/l10n_util.cc
+++ b/ui/base/l10n/l10n_util.cc
@@ -277,11 +277,12 @@ void AdjustParagraphDirectionality(base::string16* paragraph) {
}
struct AvailableLocalesTraits
- : base::DefaultLazyInstanceTraits<std::vector<std::string> > {
+ : base::internal::DestructorAtExitLazyInstanceTraits<
+ std::vector<std::string>> {
static std::vector<std::string>* New(void* instance) {
std::vector<std::string>* locales =
- base::DefaultLazyInstanceTraits<std::vector<std::string> >::New(
- instance);
+ base::internal::DestructorAtExitLazyInstanceTraits<
+ std::vector<std::string>>::New(instance);
int num_locales = uloc_countAvailable();
for (int i = 0; i < num_locales; ++i) {
std::string locale_name = uloc_getAvailable(i);
« no previous file with comments | « ui/base/l10n/formatter.h ('k') | ui/base/l10n/l10n_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698