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

Unified Diff: Source/bindings/modules/v8/V8BindingForModulesTest.cpp

Issue 1007703003: [bindings] Utilize ScriptValue::from and remove IDB* => ScriptValue conversion methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/bindings/modules/v8/V8BindingForModulesTest.cpp
diff --git a/Source/bindings/modules/v8/V8BindingForModulesTest.cpp b/Source/bindings/modules/v8/V8BindingForModulesTest.cpp
index a218671f03e9f7c74ae4108d32cbd90f1996c3f8..f4aee33bcaf6129e65a91091f5365d16fcf48b93 100644
--- a/Source/bindings/modules/v8/V8BindingForModulesTest.cpp
+++ b/Source/bindings/modules/v8/V8BindingForModulesTest.cpp
@@ -28,6 +28,7 @@
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8PerIsolateData.h"
+#include "bindings/modules/v8/ToV8ForModules.h"
#include "modules/indexeddb/IDBKey.h"
#include "modules/indexeddb/IDBKeyPath.h"
#include <gtest/gtest.h>
@@ -53,7 +54,7 @@ bool injectKey(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const
{
IDBKeyPath idbKeyPath(keyPath);
EXPECT_TRUE(idbKeyPath.isValid());
- ScriptValue keyValue = idbKeyToScriptValue(scriptState, key);
+ ScriptValue keyValue = ScriptValue::from(scriptState, key);
return injectV8KeyIntoV8Value(scriptState->isolate(), keyValue.v8Value(), value.v8Value(), idbKeyPath);
}

Powered by Google App Engine
This is Rietveld 408576698