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

Unified Diff: base/android/java/src/org/chromium/base/CommandLine.java

Issue 1469803006: NOT FOR REVIEW: Aura Android: Content Shell compiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@auraclank_upstream_wthandroid
Patch Set: Temp Created 5 years 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 | base/command_line.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/CommandLine.java
diff --git a/base/android/java/src/org/chromium/base/CommandLine.java b/base/android/java/src/org/chromium/base/CommandLine.java
index bb227f17b66a5bc41cc9b4470607226379c53168..f6e889d5d10b39b44450bdb4a481b065ffac7fb3 100644
--- a/base/android/java/src/org/chromium/base/CommandLine.java
+++ b/base/android/java/src/org/chromium/base/CommandLine.java
@@ -133,6 +133,14 @@ public abstract class CommandLine {
public static void initFromFile(String file) {
// Arbitrary clamp of 8k on the amount of file we read in.
char[] buffer = readUtf8FileFully(file, 8 * 1024);
+ String s = buffer == null ? "" : new String(buffer);
+ Log.w("auraclank", "original command line: " + s);
+ // TODO(mfomitchev): Hack
+// if (s.indexOf("--in-process-gpu") == -1) {
+// s = s.trim() + " --in-process-gpu";
+// buffer = s.toCharArray();
+// Log.w("auraclank", "modified command line: " + s);
+// }
init(buffer == null ? null : tokenizeQuotedAruments(buffer));
}
« no previous file with comments | « no previous file | base/command_line.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698