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

Unified Diff: utils/pub/utils.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: utils/pub/utils.dart
diff --git a/utils/pub/utils.dart b/utils/pub/utils.dart
index f7589dae271978f328664f0bb0b77899e9b04475..e03343f56d94682f5d719cf1281de956185c04d4 100644
--- a/utils/pub/utils.dart
+++ b/utils/pub/utils.dart
@@ -141,7 +141,7 @@ bool endsWithPattern(String str, Pattern matcher) {
/// Returns the hex-encoded sha1 hash of [source].
String sha1(String source) {
var sha = new SHA1();
- sha.add(source.charCodes);
+ sha.add(source.codeUnits);
return CryptoUtils.bytesToHex(sha.close());
}

Powered by Google App Engine
This is Rietveld 408576698