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

Unified Diff: base/android/java/src/org/chromium/base/BaseChromiumApplication.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
« no previous file with comments | « base/android/base_jni_registrar.cc ('k') | base/android/java/src/org/chromium/base/CommandLine.java » ('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/BaseChromiumApplication.java
diff --git a/base/android/java/src/org/chromium/base/BaseChromiumApplication.java b/base/android/java/src/org/chromium/base/BaseChromiumApplication.java
index a9dc2f783ead895e79110a8eb504944956af8460..8f7d39da8ec725e82808fc72b137df537f4e519c 100644
--- a/base/android/java/src/org/chromium/base/BaseChromiumApplication.java
+++ b/base/android/java/src/org/chromium/base/BaseChromiumApplication.java
@@ -6,6 +6,7 @@ package org.chromium.base;
import android.app.Activity;
import android.app.Application;
+import android.content.Context;
import android.os.Bundle;
import android.view.Window;
@@ -96,4 +97,16 @@ public class BaseChromiumApplication extends Application {
public void unregisterWindowFocusChangedListener(WindowFocusChangedListener listener) {
mWindowFocusListeners.removeObserver(listener);
}
+
+ /** Initializes the {@link CommandLine}. */
+ public void initCommandLine() {}
+
+ /**
+ * This must only be called for contexts whose application is a subclass of
+ * {@link BaseChromiumApplication}.
+ */
+ @VisibleForTesting
+ public static void initCommandLine(Context context) {
+ ((BaseChromiumApplication) context.getApplicationContext()).initCommandLine();
+ };
}
« no previous file with comments | « base/android/base_jni_registrar.cc ('k') | base/android/java/src/org/chromium/base/CommandLine.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698