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

Unified Diff: Source/modules/indexeddb/IDBVersionChangeEvent.cpp

Issue 426063010: IndexedDB: Fixed threading bugs with use of AtomicStrings. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switched to proper code-generated static strings like Core creates them. Created 6 years, 4 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
Index: Source/modules/indexeddb/IDBVersionChangeEvent.cpp
diff --git a/Source/modules/indexeddb/IDBVersionChangeEvent.cpp b/Source/modules/indexeddb/IDBVersionChangeEvent.cpp
index 2127434ae6148a44481f31ab29b346af5c37e2cc..c9763186eac26ffd9c9c585431e555f0bf17e0ec 100644
--- a/Source/modules/indexeddb/IDBVersionChangeEvent.cpp
+++ b/Source/modules/indexeddb/IDBVersionChangeEvent.cpp
@@ -26,6 +26,8 @@
#include "config.h"
#include "modules/indexeddb/IDBVersionChangeEvent.h"
+#include "modules/IndexedDBNames.h"
+
namespace blink {
@@ -71,11 +73,9 @@ unsigned long long IDBVersionChangeEvent::newVersion(bool& isNull) const
const AtomicString& IDBVersionChangeEvent::dataLoss() const
{
- DEFINE_STATIC_LOCAL(AtomicString, total, ("total", AtomicString::ConstructFromLiteral));
if (m_dataLoss == blink::WebIDBDataLossTotal)
- return total;
- DEFINE_STATIC_LOCAL(AtomicString, none, ("none", AtomicString::ConstructFromLiteral));
- return none;
+ return IndexedDBNames::total;
+ return IndexedDBNames::none;
}
const AtomicString& IDBVersionChangeEvent::interfaceName() const

Powered by Google App Engine
This is Rietveld 408576698