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

Issue 2847263003: Add tests to make sure closed CCT activities are not leaked. (Closed)

Created:
3 years, 7 months ago by DmitrySkiba
Modified:
3 years, 7 months ago
Reviewers:
Ted C, Yusuf, Torne
CC:
chromium-reviews, danakj+watch_chromium.org, agrieve+watch_chromium.org, lizeb+watch-custom-tabs_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add tests to make sure closed CCT activities are not leaked. BUG=715724, 710612 Review-Url: https://codereview.chromium.org/2847263003 Cr-Commit-Position: refs/heads/master@{#470057} Committed: https://chromium.googlesource.com/chromium/src/+/d50d8466d0bdae0b5ae8af4108ecaa1376ed5f21

Patch Set 1 #

Patch Set 2 : Add comments; simplify logic #

Patch Set 3 : Comment getUiThreadHandler #

Total comments: 24

Patch Set 4 : Address comments #

Total comments: 1

Patch Set 5 : Start extra non-CCT activity #

Patch Set 6 : Debugging failure on a bot #

Patch Set 7 : Revert debugging #

Messages

Total messages: 29 (14 generated)
DmitrySkiba
Guys PTAL. I checked that reverting last two leak-related makes tests fail.
3 years, 7 months ago (2017-05-01 18:59:54 UTC) #6
DmitrySkiba
torne@: please review changes in ThreadUtils.java - I had to make getUiThreadHandler() public in order ...
3 years, 7 months ago (2017-05-01 19:09:46 UTC) #8
Torne
https://codereview.chromium.org/2847263003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java File chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java (right): https://codereview.chromium.org/2847263003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java#newcode827 chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java:827: if (mDeferredStartupRunnable != null) { Is this function always ...
3 years, 7 months ago (2017-05-01 19:23:47 UTC) #9
DmitrySkiba
On 2017/05/01 19:23:47, Torne wrote: > https://codereview.chromium.org/2847263003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java > File > chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java > (right): > > ...
3 years, 7 months ago (2017-05-01 20:20:15 UTC) #10
Torne
lgtm
3 years, 7 months ago (2017-05-01 20:36:23 UTC) #11
Ted C
https://codereview.chromium.org/2847263003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java File chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java (right): https://codereview.chromium.org/2847263003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java#newcode1136 chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java:1136: onDeferredStartup(activityCreationTimeMs, activityName); you'll need to set mDeferredStartupRunnable = null ...
3 years, 7 months ago (2017-05-02 17:48:10 UTC) #12
Yusuf
https://codereview.chromium.org/2847263003/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java (right): https://codereview.chromium.org/2847263003/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java#newcode2448 chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java:2448: assertNull("Activity is leaked", ref.get()); should this be a poll ...
3 years, 7 months ago (2017-05-02 17:56:19 UTC) #13
DmitrySkiba
https://codereview.chromium.org/2847263003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java File chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java (right): https://codereview.chromium.org/2847263003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java#newcode1136 chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java:1136: onDeferredStartup(activityCreationTimeMs, activityName); On 2017/05/02 17:48:10, Ted C wrote: > ...
3 years, 7 months ago (2017-05-03 17:53:32 UTC) #14
Ted C
I'm slightly worried that if we can't solve the issue where the last activity isn't ...
3 years, 7 months ago (2017-05-03 21:29:36 UTC) #15
DmitrySkiba
Hmm, you are right, that last unchecked activity will mask issues where last opened activity ...
3 years, 7 months ago (2017-05-03 22:10:30 UTC) #16
DmitrySkiba
Done, PTAL.
3 years, 7 months ago (2017-05-04 22:00:43 UTC) #17
Ted C
lgtm
3 years, 7 months ago (2017-05-05 00:46:15 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2847263003/120001
3 years, 7 months ago (2017-05-08 17:47:33 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/d50d8466d0bdae0b5ae8af4108ecaa1376ed5f21
3 years, 7 months ago (2017-05-08 18:36:44 UTC) #28
o1ka
3 years, 7 months ago (2017-05-09 12:53:14 UTC) #29
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/2866213003/ by olka@chromium.org.

The reason for reverting is:
org.chromium.chrome.browser.customtabs.CustomTabActivityTest#testClosedBackActivitiesNotLeaked
flaky on chromium.linux/Android Tests

See Issue 719909.

Powered by Google App Engine
This is Rietveld 408576698