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

Issue 2188723003: 🛀 Fix ApplicationStatus.isEveryActivityDestroyed() = false within callback (Closed)

Created:
4 years, 4 months ago by agrieve
Modified:
4 years, 4 months ago
Reviewers:
Theresa, gone, nyquist
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix ApplicationStatus.isEveryActivityDestroyed() = false within callbacks isEveryActivityDestroyed was not being updated until after callbacks were called, so querying it from within a callback would always return false. There is currently only one use of this function within a callback: ChromeApplication.onForegroundActivityDestroyed() This change fixes isEveryActivityDestroyed(), and also updates onForegroundActivityDestroyed() so that it doesn't do bad things. Namely: 1) DevTools server shouldn't ever be taken down once it's been initialized in initializeSharedClasses(), which is only called once and would cause the DevTools server to never start up again. 2) stopApplicationActivityTracker() would require another call to startApplicationActivityTracker() once an activity is again created. However, the only call to it is within initializeSharedClasses(), which happens only during cold start. 3) CombinedPolicyProvider.get().destroy() actually led me to a separate bug: https://codereview.chromium.org/2184203004/ BUG=632042 Committed: https://crrev.com/f8daf5cd73ee366de2d409a18509af2058f922f0 Cr-Commit-Position: refs/heads/master@{#408555}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -11 lines) Patch
M base/android/java/src/org/chromium/base/ApplicationStatus.java View 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java View 1 chunk +1 line, -6 lines 2 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (13 generated)
agrieve
4 years, 4 months ago (2016-07-27 19:03:28 UTC) #2
agrieve
4 years, 4 months ago (2016-07-27 19:04:27 UTC) #6
gone
The lines you took out aren't mentioned in the CL description, so I'm a bit ...
4 years, 4 months ago (2016-07-28 16:09:57 UTC) #10
agrieve
https://chromiumcodereview.appspot.com/2188723003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java (left): https://chromiumcodereview.appspot.com/2188723003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java#oldcode338 chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java:338: if (mDevToolsServer != null) { On 2016/07/28 16:09:57, dfalcantara ...
4 years, 4 months ago (2016-07-28 16:39:27 UTC) #12
gone
Cool, thanks. Is there going to be a follow up to fix the breakages on ...
4 years, 4 months ago (2016-07-28 16:41:45 UTC) #14
agrieve
On 2016/07/28 16:41:45, dfalcantara wrote: > Cool, thanks. Is there going to be a follow ...
4 years, 4 months ago (2016-07-28 18:00:35 UTC) #15
gone
You should change the CL description to say that removing these lines fix things then; ...
4 years, 4 months ago (2016-07-28 18:12:05 UTC) #16
nyquist
overall lgtm, but cl description is weird
4 years, 4 months ago (2016-07-28 18:34:48 UTC) #17
Theresa
+1 to the commit message rewording, otherwise lgtm
4 years, 4 months ago (2016-07-29 01:02:42 UTC) #18
agrieve
On 2016/07/29 01:02:42, Theresa Wellington wrote: > +1 to the commit message rewording, otherwise lgtm ...
4 years, 4 months ago (2016-07-29 01:34:26 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/2188723003/1
4 years, 4 months ago (2016-07-29 01:34:47 UTC) #22
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-29 02:07:56 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 02:09:58 UTC) #26
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f8daf5cd73ee366de2d409a18509af2058f922f0
Cr-Commit-Position: refs/heads/master@{#408555}

Powered by Google App Engine
This is Rietveld 408576698