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

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: Merge to head 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
« no previous file with comments | « runtime/vm/snapshot_test.dart ('k') | samples/logo/logo.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/chat/chat_server_lib.dart
diff --git a/samples/chat/chat_server_lib.dart b/samples/chat/chat_server_lib.dart
index cb3c02fbd651fc790a3bbc1f072bae4ae3db1d7f..ec195558662c0289ab5fd67c4319c8522a91f31e 100644
--- a/samples/chat/chat_server_lib.dart
+++ b/samples/chat/chat_server_lib.dart
@@ -311,7 +311,7 @@ class IsolatedServer {
HttpResponse response,
String redirectPath) {
if (_redirectPage == null) {
- _redirectPage = redirectPageHtml.charCodes;
+ _redirectPage = redirectPageHtml.codeUnits;
}
response.statusCode = HttpStatus.FOUND;
response.headers.set(
@@ -355,7 +355,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698