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

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

Issue 386883008: Converted IDBVersionChangeEvent.dataLoss to an enumeration: IDBDataLossAmount (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase required due to the WebCore -> bling namespace rename. Created 6 years, 5 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 b67b8c42ad9698625b4e500a16fef69b8c2e11a9..2127434ae6148a44481f31ab29b346af5c37e2cc 100644
--- a/Source/modules/indexeddb/IDBVersionChangeEvent.cpp
+++ b/Source/modules/indexeddb/IDBVersionChangeEvent.cpp
@@ -26,8 +26,6 @@
#include "config.h"
#include "modules/indexeddb/IDBVersionChangeEvent.h"
-#include "bindings/modules/v8/IDBBindingUtilities.h"
-
namespace blink {
@@ -58,6 +56,10 @@ IDBVersionChangeEvent::IDBVersionChangeEvent(const AtomicString& eventType, cons
, m_newVersion(initializer.newVersion)
, m_dataLoss(blink::WebIDBDataLossNone)
{
+ if (initializer.dataLoss.isEmpty() || initializer.dataLoss == "none")
+ m_dataLoss = blink::WebIDBDataLossNone;
+ else if (initializer.dataLoss == "total")
+ m_dataLoss = blink::WebIDBDataLossTotal;
ScriptWrappable::init(this);
}
« no previous file with comments | « Source/modules/indexeddb/IDBVersionChangeEvent.h ('k') | Source/modules/indexeddb/IDBVersionChangeEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698