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

Issue 2966763003: [Prototype] Delete Google service worker caches on Android signout (Closed)

Created:
3 years, 5 months ago by msramek
Modified:
3 years, 5 months ago
CC:
chromium-reviews, agrieve+watch_chromium.org, bsazonov
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Prototype] Delete Google service worker caches on Android signout. Android Signin Manager already has the functionality to delete all data when a managed user signs out. This CL reuses that functionality to delete service worker caches when any user signs out. BUG=739982 Review-Url: https://codereview.chromium.org/2966763003 Cr-Commit-Position: refs/heads/master@{#486619} Committed: https://chromium.googlesource.com/chromium/src/+/0e575f680905fdd810dd4e5a8af2f120d03450da

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Moved some logic to google_util, added a unittest. #

Patch Set 4 : Fix the test. #

Patch Set 5 : Fix the test. #

Total comments: 8

Patch Set 6 : Addressed comments. #

Patch Set 7 : Typo #

Patch Set 8 : Only delete the cache. #

Total comments: 4

Patch Set 9 : Addressed nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -13 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/signin/SigninManager.java View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/android/signin/signin_manager_android.h View 1 2 3 4 5 6 7 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/android/signin/signin_manager_android.cc View 1 2 3 4 5 6 7 8 6 chunks +55 lines, -12 lines 0 comments Download
A chrome/browser/android/signin/signin_manager_android_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +97 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/google/core/browser/google_util.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M components/google/core/browser/google_util.cc View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (32 generated)
msramek
Hi Max, Could you take a pass at this CL? I still need to write ...
3 years, 5 months ago (2017-06-30 16:59:16 UTC) #4
maxbogue
Looks fine to me. +gogerald to also take a look though, since I haven't touched ...
3 years, 5 months ago (2017-06-30 22:31:20 UTC) #8
gogerald1
lgtm, cc'ed bsazonov@ for who is actively working on these codes,
3 years, 5 months ago (2017-07-05 15:52:51 UTC) #9
msramek
Thanks! I'm not landing yet, because I need to clarify first whether we want to ...
3 years, 5 months ago (2017-07-06 12:25:45 UTC) #10
msramek
I have made some improvements. - Added a unittest. Ganggui, can you take another pass? ...
3 years, 5 months ago (2017-07-10 17:59:03 UTC) #21
Peter Kasting
This makes me very uncomfortable. Chrome for many years had a teamwide philosophy that we ...
3 years, 5 months ago (2017-07-10 18:26:07 UTC) #22
msramek
Thanks for the feedback, Peter. I am completely on your side when it comes to ...
3 years, 5 months ago (2017-07-10 19:03:16 UTC) #23
Peter Kasting
On 2017/07/10 19:03:16, msramek (slow) wrote: > Thanks for the feedback, Peter. > > I ...
3 years, 5 months ago (2017-07-10 19:26:05 UTC) #24
msramek
Thanks, Peter! I addressed your comments. I discussed this with a few involved people, and ...
3 years, 5 months ago (2017-07-13 14:19:47 UTC) #29
msramek
Ganggui, friendly ping :) Are you happy with the unittest?
3 years, 5 months ago (2017-07-13 14:21:11 UTC) #30
msramek
Actually, one final correction - we'll only delete the SW cache, not the worker itself. ...
3 years, 5 months ago (2017-07-13 14:30:32 UTC) #31
msramek
Uploaded a new patchset, update the test and the CL description. Sorry for the confusion. ...
3 years, 5 months ago (2017-07-13 15:44:58 UTC) #35
gogerald1
still lgtm https://codereview.chromium.org/2966763003/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/signin/SigninManager.java File chrome/android/java/src/org/chromium/chrome/browser/signin/SigninManager.java (right): https://codereview.chromium.org/2966763003/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/signin/SigninManager.java#newcode543 chrome/android/java/src/org/chromium/chrome/browser/signin/SigninManager.java:543: wipeGoogleServiceWorkers(wipeDataHooks); nit:WipeGoogleServiceWorkerCaches? https://codereview.chromium.org/2966763003/diff/140001/chrome/browser/android/signin/signin_manager_android.cc File chrome/browser/android/signin/signin_manager_android.cc (right): https://codereview.chromium.org/2966763003/diff/140001/chrome/browser/android/signin/signin_manager_android.cc#newcode238 ...
3 years, 5 months ago (2017-07-13 17:08:22 UTC) #38
msramek
Thanks! https://codereview.chromium.org/2966763003/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/signin/SigninManager.java File chrome/android/java/src/org/chromium/chrome/browser/signin/SigninManager.java (right): https://codereview.chromium.org/2966763003/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/signin/SigninManager.java#newcode543 chrome/android/java/src/org/chromium/chrome/browser/signin/SigninManager.java:543: wipeGoogleServiceWorkers(wipeDataHooks); On 2017/07/13 17:08:22, gogerald1 wrote: > nit:WipeGoogleServiceWorkerCaches? ...
3 years, 5 months ago (2017-07-13 19:09:12 UTC) #41
msramek
Alright, proceeding to land this so that I can play with it before branchpoint. Peter, ...
3 years, 5 months ago (2017-07-13 19:40:02 UTC) #42
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/2966763003/160001
3 years, 5 months ago (2017-07-13 19:40:28 UTC) #46
commit-bot: I haz the power
3 years, 5 months ago (2017-07-14 01:49:07 UTC) #49
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/0e575f680905fdd810dd4e5a8af2...

Powered by Google App Engine
This is Rietveld 408576698