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

Unified Diff: net/base/net_util.cc

Issue 8487001: Remove 13 exit time constructors and 3 static initializers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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
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.
{

Powered by Google App Engine
This is Rietveld 408576698