Chromium Code Reviews| 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; |
| } |
| /** |