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

Side by Side Diff: third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePassConfig.java

Issue 1062653002: Fix some issues when building Closure runner.jar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « third_party/closure_compiler/externs/chrome_extensions.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package com.google.javascript.jscomp; 5 package com.google.javascript.jscomp;
6 6
7 import java.util.List; 7 import java.util.List;
8 8
9 public class ChromePassConfig extends DefaultPassConfig { 9 public class ChromePassConfig extends PassConfig.PassConfigDelegate {
10 public ChromePassConfig(CompilerOptions options) { 10 public ChromePassConfig(CompilerOptions options) {
11 super(options); 11 super(new DefaultPassConfig(options));
12 } 12 }
13 13
14 @Override 14 @Override
15 protected List<PassFactory> getChecks() { 15 protected List<PassFactory> getChecks() {
16 List<PassFactory> checks = super.getChecks(); 16 List<PassFactory> checks = super.getChecks();
17 checks.add(0, chromePass); 17 checks.add(0, chromePass);
18 return checks; 18 return checks;
19 } 19 }
20 20
21 final PassFactory chromePass = new PassFactory("chromePass", true) { 21 final static PassFactory chromePass = new PassFactory("chromePass", true) {
22 @Override 22 @Override
23 CompilerPass create(AbstractCompiler compiler) { 23 CompilerPass create(AbstractCompiler compiler) {
24 return new ChromePass(compiler); 24 return new ChromePass(compiler);
25 } 25 }
26 }; 26 };
27 } 27 }
OLDNEW
« no previous file with comments | « third_party/closure_compiler/externs/chrome_extensions.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698