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

Unified Diff: lib/src/dependency_graph.dart

Issue 1213233006: Option to disable message widget (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | lib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/dependency_graph.dart
diff --git a/lib/src/dependency_graph.dart b/lib/src/dependency_graph.dart
index 3eff0b8623e2a9ee9025b4ee624b012a68c6bc5b..dd39df563512aea9c309a464613c4e10ff77cf96 100644
--- a/lib/src/dependency_graph.dart
+++ b/lib/src/dependency_graph.dart
@@ -55,8 +55,9 @@ class SourceGraph {
return;
}
var prefix = path.absolute(dir);
- var files =
- _options.serverMode ? runtimeFilesForServerMode : defaultRuntimeFiles;
+ var files = _options.serverMode
+ ? runtimeFilesForServerMode(_options.widget)
+ : defaultRuntimeFiles;
for (var file in files) {
runtimeDeps.add(nodeFromUri(path.toUri(path.join(prefix, file))));
}
@@ -540,7 +541,8 @@ const corelibOrder = const [
];
/// Runtime files added to applications when running in server mode.
-final runtimeFilesForServerMode = new List<String>.from(defaultRuntimeFiles)
- ..addAll(const ['messages_widget.js', 'messages.css']);
+List<String> runtimeFilesForServerMode([bool includeWidget = true]) =>
+ new List<String>.from(defaultRuntimeFiles)
+ ..addAll(includeWidget ? const ['messages_widget.js', 'messages.css'] : []);
final _log = new Logger('dev_compiler.dependency_graph');
« no previous file with comments | « no previous file | lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698