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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java

Issue 1435263003: [Android] Show document mode opt-out InfoBar on selected devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments, renaming Created 5 years, 1 month 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: chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
index 92bcd1cb25f07012974916888267736947cd7034..df64c22ed2ef84ae9948a45fedbc11455e8ab160 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
@@ -246,14 +246,19 @@ public class ChromeApplication extends ContentApplication {
* session and calls onForegroundSessionStart(). Subsequent calls are noops until
* onForegroundSessionEnd() is called, to handle changing top-level Chrome activities in one
* foreground session.
+ *
+ * @return Whether foreground session is started by this call, i.e., there was no Chrome process
+ * running already.
*/
- public void onStartWithNative() {
- if (mIsStarted) return;
+ public boolean onStartWithNative() {
+ if (mIsStarted) return false;
mIsStarted = true;
assert mIsProcessInitialized;
onForegroundSessionStart();
+
+ return true;
}
/**

Powered by Google App Engine
This is Rietveld 408576698