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

Unified Diff: Source/WebCore/bindings/dart/custom/DartIDBKeyCustom.cpp

Issue 10660025: Cleanup dart to string conversions. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: . Created 8 years, 6 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/WebCore/bindings/dart/custom/DartIDBKeyCustom.cpp
diff --git a/Source/WebCore/bindings/dart/custom/DartIDBKeyCustom.cpp b/Source/WebCore/bindings/dart/custom/DartIDBKeyCustom.cpp
index 78b183764ee3e6b3e1618ef0fef2920f9be40e96..370a770222f16af734463d08766e06ac892f3ed5 100644
--- a/Source/WebCore/bindings/dart/custom/DartIDBKeyCustom.cpp
+++ b/Source/WebCore/bindings/dart/custom/DartIDBKeyCustom.cpp
@@ -45,10 +45,10 @@ PassRefPtr<IDBKey> DartIDBKey::toNative(Dart_Handle handle, Dart_Handle& excepti
}
if (Dart_IsString(handle)) {
- RefPtr<StringImpl> asStringImpl = DartUtilities::toStringImpl(handle, DartUtilities::ConvertNone, exception);
+ DartStringAdapter asString = DartUtilities::dartToString(handle, exception);
if (exception)
return 0;
- return IDBKey::createString(asStringImpl);
+ return IDBKey::createString(asString);
}
// FIXME: Support Date case.

Powered by Google App Engine
This is Rietveld 408576698