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

Issue 1329083002: Clear webapp storage when site data is cleared (Closed)

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

Description

Clear webapp storage when site data is cleared From a privacy perspective, all webapp data should be cleared when site data is cleared by the user. Add the functionality to do this. Note: this CL does not delete the files themselves but no identifying information about either the webapp or the user is left in the SharedPreferences so there should be no problem. This is because of a platform limitation which does not allow SharedPreference consumers to delete the SharedPreference file. BUG=508627 Committed: https://crrev.com/afb72b4c970ae3a62777099822d81df36598cedc Cr-Commit-Position: refs/heads/master@{#348370}

Patch Set 1 #

Patch Set 2 : Fix comment issue #

Total comments: 10

Patch Set 3 : Addresss review comments #

Patch Set 4 : Add initial tests and fix compile #

Total comments: 20

Patch Set 5 : Address review comments #

Patch Set 6 : Rework to use AsyncTask rather than IO thread #

Total comments: 26

Patch Set 7 : Address review comments #

Patch Set 8 : Address review comments #

Patch Set 9 : Fix build and add callback called test #

Patch Set 10 : Fix compile #

Total comments: 8

Patch Set 11 : Fix nits #

Total comments: 2

Patch Set 12 : ifdef webapp data clearance #

Patch Set 13 : Fix try failures #

Patch Set 14 : Fix silly test mistake #

Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -35 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataDialogFragment.java View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java View 1 2 3 4 5 6 7 8 9 10 4 chunks +19 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +61 lines, -17 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataDialogFragmentTest.java View 1 2 3 4 5 6 7 8 9 1 chunk +119 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 7 8 9 10 11 12 13 4 chunks +60 lines, -13 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/android/webapps/webapp_registry.h View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/android/webapps/webapp_registry.cc View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 5 4 chunks +17 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (4 generated)
Lalit Maganti
Mounir and Dan: PTAL. I know I need to add tests for this but adding ...
5 years, 3 months ago (2015-09-07 14:50:42 UTC) #2
mlamouri (slow - plz ping)
Except for some nits, it sounds good. https://codereview.chromium.org/1329083002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java (right): https://codereview.chromium.org/1329083002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java#newcode90 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java:90: static void ...
5 years, 3 months ago (2015-09-08 10:03:00 UTC) #3
mlamouri (slow - plz ping)
Oh, yeah, please, add tests :)
5 years, 3 months ago (2015-09-08 10:03:14 UTC) #4
Lalit Maganti
Tests are in progress :) https://codereview.chromium.org/1329083002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java (right): https://codereview.chromium.org/1329083002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java#newcode90 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java:90: static void delete(final Context ...
5 years, 3 months ago (2015-09-08 10:44:28 UTC) #5
gone
I don't understand the data clearing bits well enough. You'll need another person to review ...
5 years, 3 months ago (2015-09-08 20:38:13 UTC) #6
Lalit Maganti
Dan: I've rebased the patch since review because of issues on my end (only affects ...
5 years, 3 months ago (2015-09-09 15:27:46 UTC) #7
Lalit Maganti
Actually +bauerb this time. Please see previous comment.
5 years, 3 months ago (2015-09-09 16:47:56 UTC) #9
gone
https://chromiumcodereview.appspot.com/1329083002/diff/100001/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://chromiumcodereview.appspot.com/1329083002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java#newcode33 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java:33: * Called when a retrieval of the stored web ...
5 years, 3 months ago (2015-09-09 23:30:40 UTC) #10
Lalit Maganti
https://codereview.chromium.org/1329083002/diff/100001/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/1329083002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java#newcode33 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java:33: * Called when a retrieval of the stored web ...
5 years, 3 months ago (2015-09-10 09:41:58 UTC) #11
Bernhard Bauer
https://codereview.chromium.org/1329083002/diff/100001/chrome/browser/android/webapps/webapp_registry.h File chrome/browser/android/webapps/webapp_registry.h (right): https://codereview.chromium.org/1329083002/diff/100001/chrome/browser/android/webapps/webapp_registry.h#newcode23 chrome/browser/android/webapps/webapp_registry.h:23: WebappRegistry() = delete; DISALLOW_IMPLICIT_CONSTRUCTORS will do this (including DISALLOW_COPY_AND_ASSIGN). ...
5 years, 3 months ago (2015-09-10 09:46:24 UTC) #12
Lalit Maganti
https://codereview.chromium.org/1329083002/diff/100001/chrome/browser/android/webapps/webapp_registry.h File chrome/browser/android/webapps/webapp_registry.h (right): https://codereview.chromium.org/1329083002/diff/100001/chrome/browser/android/webapps/webapp_registry.h#newcode23 chrome/browser/android/webapps/webapp_registry.h:23: WebappRegistry() = delete; On 2015/09/10 09:46:24, Bernhard Bauer wrote: ...
5 years, 3 months ago (2015-09-10 10:01:38 UTC) #13
mlamouri (slow - plz ping)
lgtm with comments applied. Thanks! :) https://codereview.chromium.org/1329083002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java (right): https://codereview.chromium.org/1329083002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java#newcode82 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java:82: * Deletes the ...
5 years, 3 months ago (2015-09-10 11:45:35 UTC) #14
Lalit Maganti
bauerb@: there are 3 failing tests because of the browsing_data_api for Chrome extensions. However, this ...
5 years, 3 months ago (2015-09-10 16:37:02 UTC) #15
Bernhard Bauer
On 2015/09/10 16:37:02, Lalit Maganti wrote: > bauerb@: there are 3 failing tests because of ...
5 years, 3 months ago (2015-09-10 16:58:00 UTC) #16
Lalit Maganti
On 2015/09/10 16:58:00, Bernhard Bauer wrote: > On 2015/09/10 16:37:02, Lalit Maganti wrote: > > ...
5 years, 3 months ago (2015-09-10 17:07:23 UTC) #17
Lalit Maganti
On 2015/09/10 17:07:23, Lalit Maganti wrote: > On 2015/09/10 16:58:00, Bernhard Bauer wrote: > > ...
5 years, 3 months ago (2015-09-10 17:12:07 UTC) #18
Bernhard Bauer
On 2015/09/10 17:12:07, Lalit Maganti wrote: > On 2015/09/10 17:07:23, Lalit Maganti wrote: > > ...
5 years, 3 months ago (2015-09-10 19:13:00 UTC) #19
Lalit Maganti
On 2015/09/10 19:13:00, Bernhard Bauer wrote: > On 2015/09/10 17:12:07, Lalit Maganti wrote: > > ...
5 years, 3 months ago (2015-09-10 20:07:52 UTC) #20
gone
lgtm @ bauerb https://codereview.chromium.org/1329083002/diff/200001/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/1329083002/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java#newcode53 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java:53: // Update the last used time ...
5 years, 3 months ago (2015-09-10 20:12:50 UTC) #21
Lalit Maganti
As well as the nit, I've had to make some changes to defeat FindBugs and ...
5 years, 3 months ago (2015-09-10 20:57:10 UTC) #22
Bernhard Bauer
LGTM! On 2015/09/10 20:57:10, Lalit Maganti wrote: > As well as the nit, I've had ...
5 years, 3 months ago (2015-09-10 21:33:47 UTC) #23
Lalit Maganti
Last change was for a stupid mistake I made in the tests. Fixed and sending ...
5 years, 3 months ago (2015-09-11 09:24:55 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1329083002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1329083002/260001
5 years, 3 months ago (2015-09-11 09:25:07 UTC) #27
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years, 3 months ago (2015-09-11 10:03:07 UTC) #28
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/afb72b4c970ae3a62777099822d81df36598cedc Cr-Commit-Position: refs/heads/master@{#348370}
5 years, 3 months ago (2015-09-11 10:03:50 UTC) #29
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:21:00 UTC) #30
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/afb72b4c970ae3a62777099822d81df36598cedc
Cr-Commit-Position: refs/heads/master@{#348370}

Powered by Google App Engine
This is Rietveld 408576698