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

Unified Diff: third_party/closure_compiler/runner/src/org/chromium/closure/compiler/Runner.java

Issue 421253006: Add ChromeCodingConvention.java to Closure Compiler to preserve getInstance() type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@A_typechecking_about
Patch Set: rebase onto master Created 6 years, 4 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 | « third_party/closure_compiler/runner/src/org/chromium/closure/compiler/ChromeCodingConvention.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/runner/src/org/chromium/closure/compiler/Runner.java
diff --git a/third_party/closure_compiler/runner/src/org/chromium/closure/compiler/Runner.java b/third_party/closure_compiler/runner/src/org/chromium/closure/compiler/Runner.java
index c94913127e0ed7fd0ae126f6f7a5980df08d094d..e671100b19fb4dac79bc38657d06754fed76fba1 100644
--- a/third_party/closure_compiler/runner/src/org/chromium/closure/compiler/Runner.java
+++ b/third_party/closure_compiler/runner/src/org/chromium/closure/compiler/Runner.java
@@ -12,6 +12,8 @@ import org.kohsuke.args4j.CmdLineException;
import org.kohsuke.args4j.CmdLineParser;
import org.kohsuke.args4j.Option;
+import org.chromium.closure.compiler.ChromeCodingConvention;
+
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
@@ -189,6 +191,13 @@ public class Runner {
return options;
}
+ @Override
+ protected void setRunOptions(CompilerOptions options)
+ throws FlagUsageException, IOException {
+ super.setRunOptions(options);
+ options.setCodingConvention(new ChromeCodingConvention());
+ }
+
int execute() {
int result = 0;
int runs = 1;
« no previous file with comments | « third_party/closure_compiler/runner/src/org/chromium/closure/compiler/ChromeCodingConvention.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698