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

Unified Diff: Source/WebCore/storage/chromium/DatabaseTrackerChromium.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/AbstractDatabase.cpp ('k') | Source/WebCore/storage/chromium/QuotaTracker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/storage/chromium/DatabaseTrackerChromium.cpp
===================================================================
--- Source/WebCore/storage/chromium/DatabaseTrackerChromium.cpp (revision 96741)
+++ Source/WebCore/storage/chromium/DatabaseTrackerChromium.cpp (working copy)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 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
@@ -47,7 +47,7 @@
DatabaseTracker& DatabaseTracker::tracker()
{
- DEFINE_STATIC_LOCAL(DatabaseTracker, tracker, (""));
+ AtomicallyInitializedStatic(DatabaseTracker&, tracker = *new DatabaseTracker(""));
return tracker;
}
« no previous file with comments | « Source/WebCore/storage/AbstractDatabase.cpp ('k') | Source/WebCore/storage/chromium/QuotaTracker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698