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

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

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
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 406f36b0698e5a9f1bca5acc437b7127e9938ce2..43e000428bf35ed84ac77e37a3266283d4930445 100644
--- a/base/android/java/src/org/chromium/base/CommandLine.java
+++ b/base/android/java/src/org/chromium/base/CommandLine.java
@@ -31,6 +31,7 @@ public abstract class CommandLine {
* Returns true if this command line contains the given switch.
* (Switch names ARE case-sensitive).
*/
+ @VisibleForTesting
public abstract boolean hasSwitch(String switchString);
/**
@@ -57,6 +58,7 @@ public abstract class CommandLine {
* this action happens before the switch is needed.
* @param switchString the switch to add. It should NOT start with '--' !
*/
+ @VisibleForTesting
public abstract void appendSwitch(String switchString);
/**
@@ -96,6 +98,7 @@ public abstract class CommandLine {
}
// Equivalent to CommandLine::ForCurrentProcess in C++.
+ @VisibleForTesting
public static CommandLine getInstance() {
CommandLine commandLine = sCommandLine.get();
assert commandLine != null;

Powered by Google App Engine
This is Rietveld 408576698