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

Unified Diff: sdk/lib/vmservice/asset.dart

Issue 2564383002: Make some VM libraries patch cleanly using the analyzer. (Closed)
Patch Set: Created 4 years 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
« sdk/lib/mirrors/mirrors.dart ('K') | « sdk/lib/mirrors/mirrors.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/vmservice/asset.dart
diff --git a/sdk/lib/vmservice/asset.dart b/sdk/lib/vmservice/asset.dart
index b8f6c207f94dd431d232f2c2f5c4d0fd617afb24..db0d97869b7fc59f73ad56dc7aac7ca884f2b2a4 100644
--- a/sdk/lib/vmservice/asset.dart
+++ b/sdk/lib/vmservice/asset.dart
@@ -38,23 +38,7 @@ class Asset {
}
/// Call to request assets from the embedder.
- static HashMap<String, Asset> request() {
- HashMap<String, Asset> assets = new HashMap<String, Asset>();
- Uint8List tarBytes = _requestAssets();
- if (tarBytes == null) {
- return assets;
- }
- _TarArchive archive = new _TarArchive(tarBytes);
- while (archive.hasNext()) {
- Asset asset = archive.next();
- if (asset == null) {
- // Skip over special files.
- continue;
- }
- assets[asset.name] = asset;
- }
- return assets;
- }
+ external static HashMap<String, Asset> request();
String toString() => '$name ($mimeType)';
}
« sdk/lib/mirrors/mirrors.dart ('K') | « sdk/lib/mirrors/mirrors.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698