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

Unified Diff: sky/engine/tonic/dart_exception_factory.cc

Issue 933843004: Use Dart_EmptyString (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/tonic/dart_exception_factory.cc
diff --git a/sky/engine/tonic/dart_exception_factory.cc b/sky/engine/tonic/dart_exception_factory.cc
index 98f9675390bdb70121d8003ef85bec435a22d324..f888122e28837c327e636eabbd39da3d67011270 100644
--- a/sky/engine/tonic/dart_exception_factory.cc
+++ b/sky/engine/tonic/dart_exception_factory.cc
@@ -36,8 +36,7 @@ Dart_Handle DartExceptionFactory::CreateException(const String& class_name,
Dart_Handle exception_class = Dart_GetType(
core_library_.value(), StringToDart(dart_state_, class_name), 0, 0);
Dart_Handle message_handle = StringToDart(dart_state_, message);
- Dart_Handle empty_string = Dart_NewStringFromCString("");
- return Dart_New(exception_class, empty_string, 1, &message_handle);
+ return Dart_New(exception_class, Dart_EmptyString(), 1, &message_handle);
}
} // namespace blink
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698