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

Unified Diff: runtime/bin/http_impl.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 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/bin/file_impl.dart ('k') | runtime/bin/http_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/http_impl.dart
diff --git a/runtime/bin/http_impl.dart b/runtime/bin/http_impl.dart
index 9e2bdb004bfa101154ae0286351b6782d327e159..a365a1c160a473a27a1ab5e37ddce31422996146 100644
--- a/runtime/bin/http_impl.dart
+++ b/runtime/bin/http_impl.dart
@@ -193,7 +193,7 @@ class _HttpHeaders implements HttpHeaders {
_port = HttpClient.DEFAULT_HTTP_PORT;
} else {
try {
- _port = Math.parseInt(value.substring(pos + 1));
+ _port = parseInt(value.substring(pos + 1));
} catch (FormatException e) {
_port = null;
}
@@ -536,7 +536,7 @@ class _Cookie implements Cookie {
if (name == "expires") {
expires = _HttpUtils.parseDate(value, strict: false);
} else if (name == "max-age") {
- maxAge = Math.parseInt(value);
+ maxAge = parseInt(value);
} else if (name == "domain") {
domain = value;
} else if (name == "path") {
@@ -1688,7 +1688,7 @@ class _HttpClientResponse
void _onHeaderReceived(String name, String value) {
_headers.add(name, value);
if (name == "content-length") {
- _contentLength = Math.parseInt(value);
+ _contentLength = parseInt(value);
}
}
« no previous file with comments | « runtime/bin/file_impl.dart ('k') | runtime/bin/http_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698