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

Unified Diff: Source/WebCore/storage/chromium/QuotaTracker.cpp

Issue 8152004: Merge 96554 - A little more WebSQLDatabase thread safety. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 2 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 | « Source/WebCore/storage/chromium/DatabaseTrackerChromium.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/storage/chromium/QuotaTracker.cpp
===================================================================
--- Source/WebCore/storage/chromium/QuotaTracker.cpp (revision 96741)
+++ Source/WebCore/storage/chromium/QuotaTracker.cpp (working copy)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -40,7 +40,7 @@
QuotaTracker& QuotaTracker::instance()
{
- DEFINE_STATIC_LOCAL(QuotaTracker, tracker, ());
+ AtomicallyInitializedStatic(QuotaTracker&, tracker = *new QuotaTracker);
return tracker;
}
« no previous file with comments | « Source/WebCore/storage/chromium/DatabaseTrackerChromium.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698