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

Unified Diff: samples/chat/chat_server_lib.dart

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: samples/chat/chat_server_lib.dart
diff --git a/samples/chat/chat_server_lib.dart b/samples/chat/chat_server_lib.dart
index b9845322d691f5f9b3f95f97b50778243950f830..c78d60496fad7b0c1a359c6f2d8210af5bf6749d 100644
--- a/samples/chat/chat_server_lib.dart
+++ b/samples/chat/chat_server_lib.dart
@@ -317,7 +317,7 @@ class IsolatedServer {
HttpResponse response,
String redirectPath) {
if (_redirectPage == null) {
- _redirectPage = redirectPageHtml.charCodes;
+ _redirectPage = redirectPageHtml.codeUnits;
}
response.statusCode = HttpStatus.FOUND;
response.headers.set(
@@ -361,7 +361,7 @@ class IsolatedServer {
// Serve the not found page.
void _notFoundHandler(HttpRequest request, HttpResponse response) {
if (_notFoundPage == null) {
- _notFoundPage = notFoundPageHtml.charCodes;
+ _notFoundPage = notFoundPageHtml.codeUnits;
}
response.statusCode = HttpStatus.NOT_FOUND;
response.headers.set("Content-Type", "text/html; charset=UTF-8");
« no previous file with comments | « runtime/vm/snapshot_test.dart ('k') | samples/logo/logo.dart » ('j') | sdk/lib/core/string.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698