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

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: removed isOptedInToDocumentMode 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 4ae346a23430f3507dad4acd29295bc785c5c32f..be07945291c2a31061ab0259cf15f9e1090a1683 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
@@ -245,14 +245,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., no other Chrome activities
gone 2015/11/17 23:18:16 This is misleading if another Activity was killed
Kibeom Kim (inactive) 2015/11/20 11:44:14 Done.
+ * were alive.
*/
- 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