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

Issue 1359383002: webapps: Add cleanup task when opening up WebappActivity to clean old web apps (Closed)

Created:
5 years, 3 months ago by Lalit Maganti
Modified:
5 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@webapp-cleanup
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

webapps: Add cleanup task when opening up WebappActivity to clean old web apps Since there is no sure way of knowing when a web app has been removed from the Home screen, a heuristic has to be used instead. The heuristic is that if the web app has not been opened in 3 months then it can probably be safely removed. The full cleanup check is run once a month when starting a web app so we don't choke the system every time a web app is opened. BUG=535174 Committed: https://crrev.com/8d3b2c77b75ee7261ab91a7caf4fb2a25a3abc93 Cr-Commit-Position: refs/heads/master@{#350579}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address review comments #

Total comments: 10

Patch Set 3 : Fix remaining comments #

Patch Set 4 : Fix nits #

Patch Set 5 : Rebase on master #

Total comments: 4

Patch Set 6 : Address all remaining issues #

Patch Set 7 : Fix remaining uissues #

Total comments: 10

Patch Set 8 : Address Mounir's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -2 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java View 1 2 3 4 5 6 7 3 chunks +42 lines, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappRegistryTest.java View 1 2 3 4 5 6 4 chunks +100 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (3 generated)
Lalit Maganti
Dan and Mounir: PTAL
5 years, 3 months ago (2015-09-23 13:58:27 UTC) #2
mlamouri (slow - plz ping)
Two comments on the description first: - "Since there is no sure fire way of ...
5 years, 3 months ago (2015-09-23 14:04:28 UTC) #3
Lalit Maganti
On 2015/09/23 14:04:28, Mounir Lamouri wrote: > Two comments on the description first: > - ...
5 years, 3 months ago (2015-09-23 14:09:12 UTC) #4
gone
https://codereview.chromium.org/1359383002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java (right): https://codereview.chromium.org/1359383002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java#newcode169 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java:169: // Kick off the old web app cleanup (if ...
5 years, 3 months ago (2015-09-24 10:27:12 UTC) #5
Lalit Maganti
https://codereview.chromium.org/1359383002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java (right): https://codereview.chromium.org/1359383002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java#newcode169 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java:169: // Kick off the old web app cleanup (if ...
5 years, 3 months ago (2015-09-24 12:35:44 UTC) #6
gone
https://codereview.chromium.org/1359383002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java (right): https://codereview.chromium.org/1359383002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java#newcode33 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java:33: /** Represnts a period of 4 weeks in milliseconds ...
5 years, 3 months ago (2015-09-24 12:45:10 UTC) #7
Lalit Maganti
https://codereview.chromium.org/1359383002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java (right): https://codereview.chromium.org/1359383002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java#newcode33 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java:33: /** Represnts a period of 4 weeks in milliseconds ...
5 years, 3 months ago (2015-09-24 12:49:26 UTC) #8
Lalit Maganti
Dan: should have addressed your offline comments.
5 years, 3 months ago (2015-09-24 13:49:37 UTC) #9
gone
need to review again after you figure out why the test is passing, given the ...
5 years, 3 months ago (2015-09-24 14:08:30 UTC) #10
Lalit Maganti
Should have sorted inconsistencies and all remaining issues. https://codereview.chromium.org/1359383002/diff/80001/chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappRegistryTest.java File chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappRegistryTest.java (right): https://codereview.chromium.org/1359383002/diff/80001/chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappRegistryTest.java#newcode47 chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappRegistryTest.java:47: mSharedPreferences.edit().putLong(KEY_LAST_CLEANUP, ...
5 years, 3 months ago (2015-09-24 14:30:20 UTC) #11
gone
lgtm
5 years, 3 months ago (2015-09-24 14:40:53 UTC) #12
mlamouri (slow - plz ping)
lgtm with comments adressed https://codereview.chromium.org/1359383002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java (right): https://codereview.chromium.org/1359383002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java#newcode166 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java:166: } Doing that in onResume ...
5 years, 3 months ago (2015-09-24 15:20:05 UTC) #13
Lalit Maganti
Sending to CQ. https://codereview.chromium.org/1359383002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java (right): https://codereview.chromium.org/1359383002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java#newcode166 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java:166: } On 2015/09/24 15:20:04, Mounir Lamouri ...
5 years, 3 months ago (2015-09-24 16:09:38 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1359383002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1359383002/140001
5 years, 3 months ago (2015-09-24 16:09:54 UTC) #17
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-09-24 16:52:04 UTC) #18
commit-bot: I haz the power
5 years, 3 months ago (2015-09-24 16:54:04 UTC) #19
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8d3b2c77b75ee7261ab91a7caf4fb2a25a3abc93
Cr-Commit-Position: refs/heads/master@{#350579}

Powered by Google App Engine
This is Rietveld 408576698