Chromium Code Reviews

Unified Diff: utils/pub/system_cache.dart

Issue 11871028: Clean up code that locates SDK and SDK version. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « utils/pub/sdk_source.dart ('k') | utils/tests/pub/install/hosted/check_out_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/system_cache.dart
diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart
index 3074a741188331a2820426075f408ba38846b653..50b022ee2495435c83fb433a0db1c2842da036a5 100644
--- a/utils/pub/system_cache.dart
+++ b/utils/pub/system_cache.dart
@@ -43,9 +43,9 @@ class SystemCache {
sources = new SourceRegistry();
/// Creates a system cache and registers the standard set of sources.
- factory SystemCache.withSources(String rootDir, String sdkDir) {
+ factory SystemCache.withSources(String rootDir) {
var cache = new SystemCache(rootDir);
- cache.register(new SdkSource(sdkDir));
+ cache.register(new SdkSource());
cache.register(new GitSource());
cache.register(new HostedSource());
cache.sources.setDefault('hosted');
« no previous file with comments | « utils/pub/sdk_source.dart ('k') | utils/tests/pub/install/hosted/check_out_test.dart » ('j') | no next file with comments »

Powered by Google App Engine