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

Unified Diff: sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart

Issue 368103002: Support passing CSP configuration to the dart2js transformer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | sdk/lib/_internal/pub/lib/src/dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart b/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart
index 6f21c8de5360dab40b6749273d90590a73227703..814dbbeb3c3cf10e0cea555e9cb5b8734436f414 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart
@@ -24,7 +24,7 @@ import 'asset_environment.dart';
/// The set of all valid configuration options for this transformer.
final _validOptions = new Set<String>.from([
- 'commandLineOptions', 'checked', 'minify', 'verbose', 'environment',
+ 'commandLineOptions', 'checked', 'csp', 'minify', 'verbose', 'environment',
'analyzeAll', 'suppressWarnings', 'suppressHints', 'suppressPackageWarnings',
'terse'
]);
@@ -135,6 +135,7 @@ class Dart2JSTransformer extends Transformer implements LazyTransformer {
return Chain.track(dart.compile(
entrypoint, provider,
commandLineOptions: _configCommandLineOptions,
+ csp: _configBool('csp'),
checked: _configBool('checked'),
minify: _configBool(
'minify', defaultsTo: _settings.mode == BarbackMode.RELEASE),
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698