Chromium Code Reviews| Index: net/base/net_util.cc |
| diff --git a/net/base/net_util.cc b/net/base/net_util.cc |
| index f34f98021ec13c829285221816bf167efdcfcb61..23cfa94510f7d76b1c2416251c7d925b6f622b9a 100644 |
| --- a/net/base/net_util.cc |
| +++ b/net/base/net_util.cc |
| @@ -496,7 +496,8 @@ static base::Lock lang_set_lock; |
| // the language |lang|. |
| bool IsComponentCoveredByLang(const icu::UnicodeSet& component_characters, |
| const std::string& lang) { |
| - static const icu::UnicodeSet kASCIILetters(0x61, 0x7a); // [a-z] |
| + CR_DEFINE_STATIC_LOCAL( |
| + const icu::UnicodeSet, kASCIILetters, (0x61, 0x7a)); // [a-z] |
|
Mark Mentovai
2011/11/06 14:09:02
('a', 'z') works?
Nico
2011/11/06 17:30:38
D'oh!ne.
|
| icu::UnicodeSet* lang_set; |
| // We're called from both the UI thread and the history thread. |
| { |