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

Issue 12317062: Expose StoragePartition clear methods for Android WebView (Closed)

Created:
7 years, 10 months ago by boliu
Modified:
7 years, 9 months ago
Reviewers:
joth, jam, awong
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Add StoragePartition::StorageMask for ClearData methods Android WebView has some storage clear methods are based on different conditions than what is exposed already in StoragePartition. But all the underlying logic is already implemented. So just add a mask parameter to the existing methods to for this flexibility. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186080

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add a StorageMask to existing clear methods instead. #

Patch Set 3 : Remote unneeded include #

Patch Set 4 : Fix aw flags #

Total comments: 5

Patch Set 5 : Address Joth's comments. #

Patch Set 6 : Rebase #

Total comments: 5

Patch Set 7 : GetDefaultStoragePartition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -88 lines) Patch
M android_webview/native/aw_quota_manager_bridge_impl.h View 2 chunks +6 lines, -0 lines 0 comments Download
M android_webview/native/aw_quota_manager_bridge_impl.cc View 1 2 3 4 5 6 1 chunk +17 lines, -50 lines 0 comments Download
M chrome/browser/extensions/data_deleter.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 4 chunks +58 lines, -32 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/storage_partition.h View 1 2 3 4 2 chunks +22 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
boliu
jam: Could you take a look at the content/ part. This adds public methods to ...
7 years, 10 months ago (2013-02-22 03:30:18 UTC) #1
jam
https://codereview.chromium.org/12317062/diff/1/content/public/browser/storage_partition.h File content/public/browser/storage_partition.h (right): https://codereview.chromium.org/12317062/diff/1/content/public/browser/storage_partition.h#newcode30 content/public/browser/storage_partition.h:30: enum StorageType; you can't forward declare enums. this is ...
7 years, 10 months ago (2013-02-22 17:45:42 UTC) #2
boliu
Went beyond merging the new methods by introducing a bit mask for all the different ...
7 years, 10 months ago (2013-02-22 21:55:59 UTC) #3
joth
new iteration looks much cleaner to me, fwiw https://codereview.chromium.org/12317062/diff/2002/content/public/browser/storage_partition.h File content/public/browser/storage_partition.h (right): https://codereview.chromium.org/12317062/diff/2002/content/public/browser/storage_partition.h#newcode85 content/public/browser/storage_partition.h:85: int ...
7 years, 10 months ago (2013-02-22 21:59:38 UTC) #4
joth
https://codereview.chromium.org/12317062/diff/2002/android_webview/native/aw_quota_manager_bridge_impl.cc File android_webview/native/aw_quota_manager_bridge_impl.cc (right): https://codereview.chromium.org/12317062/diff/2002/android_webview/native/aw_quota_manager_bridge_impl.cc#newcode199 android_webview/native/aw_quota_manager_bridge_impl.cc:199: GetStoragePartition()->AsyncClearAllData( nit: the "All" in the function name maybe ...
7 years, 10 months ago (2013-02-22 22:01:08 UTC) #5
boliu
Joth's comments addressed. PTAL https://codereview.chromium.org/12317062/diff/2002/android_webview/native/aw_quota_manager_bridge_impl.cc File android_webview/native/aw_quota_manager_bridge_impl.cc (right): https://codereview.chromium.org/12317062/diff/2002/android_webview/native/aw_quota_manager_bridge_impl.cc#newcode199 android_webview/native/aw_quota_manager_bridge_impl.cc:199: GetStoragePartition()->AsyncClearAllData( On 2013/02/22 22:01:08, joth ...
7 years, 10 months ago (2013-02-25 17:39:20 UTC) #6
boliu
jam: Ping!
7 years, 9 months ago (2013-02-27 16:26:32 UTC) #7
boliu
On 2013/02/27 16:26:32, boliu wrote: > jam: Ping! Ping x2!
7 years, 9 months ago (2013-03-04 19:59:04 UTC) #8
jam
7 years, 9 months ago (2013-03-04 23:32:16 UTC) #9
jam
lgtm, sorry I missed the ping (feel free to IM me next time if I ...
7 years, 9 months ago (2013-03-04 23:32:18 UTC) #10
boliu
Sorry, I had a question from a previous patch set that was missed. Copied over ...
7 years, 9 months ago (2013-03-04 23:39:27 UTC) #11
awong
I'm slightly worried here because there seems to be some amount of overlap in functionality ...
7 years, 9 months ago (2013-03-04 23:44:27 UTC) #12
jam
On 2013/03/04 23:44:27, awong wrote: > I'm slightly worried here because there seems to be ...
7 years, 9 months ago (2013-03-04 23:50:56 UTC) #13
boliu
Right, android_webview is a separate content embedder and does not include code under chrome/. I ...
7 years, 9 months ago (2013-03-05 00:00:00 UTC) #14
awong
LGTM w/ the previous 2 comments. Yeah, I think we need to clean up BrowsingDataRemover ...
7 years, 9 months ago (2013-03-05 00:05:47 UTC) #15
boliu
On 2013/03/05 00:05:47, awong wrote: > LGTM w/ the previous 2 comments. > > Yeah, ...
7 years, 9 months ago (2013-03-05 00:08:37 UTC) #16
awong
On Mon, Mar 4, 2013 at 4:08 PM, <boliu@chromium.org> wrote: > On 2013/03/05 00:05:47, awong ...
7 years, 9 months ago (2013-03-05 00:10:10 UTC) #17
joth
aw/ lgtm
7 years, 9 months ago (2013-03-05 00:10:43 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/12317062/16008
7 years, 9 months ago (2013-03-05 00:13:25 UTC) #19
commit-bot: I haz the power
Change committed as 186080
7 years, 9 months ago (2013-03-05 03:52:03 UTC) #20
jam
btw, just curious what the status of the refactoring is? On Mon, Mar 4, 2013 ...
7 years, 9 months ago (2013-03-25 19:54:49 UTC) #21
boliu
7 years, 9 months ago (2013-03-25 20:00:04 UTC) #22
Message was sent while issue was closed.
On 2013/03/25 19:54:49, jam wrote:
> btw, just curious what the status of the refactoring is?
> 

Have not started. I'm still tied up with webview graphics work for awhile. I did
file crbug.com/180118 so I don't forget.

Powered by Google App Engine
This is Rietveld 408576698