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

Issue 523139: Adds local storage nodes to cookie tree model and cookies view. (Closed)

Created:
10 years, 11 months ago by bulach_
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Adds local storage nodes to cookie tree model and cookies view. BUG=none TEST=The show cookie dialog box should have a new node "local storage" when appropriate. When selected, it should display details of local storage (name, size on disk, last modified) in the details frame. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37001

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 30

Patch Set 3 : '' #

Total comments: 55

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 9

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 38

Patch Set 9 : '' #

Total comments: 21

Patch Set 10 : '' #

Total comments: 4

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 1

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Patch Set 16 : '' #

Patch Set 17 : '' #

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Patch Set 24 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1610 lines, -232 lines) Patch
M chrome/app/generated_resources.grd View 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data_local_storage_helper.h View 8 9 10 11 1 chunk +98 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data_local_storage_helper.cc View 8 9 10 1 chunk +125 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data_local_storage_helper_unittest.cc View 8 9 10 11 12 1 chunk +170 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/cookies_window_controller.h View 16 17 18 19 20 21 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/cocoa/cookies_window_controller.mm View 13 14 15 16 17 18 19 20 21 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/cookies_window_controller_unittest.mm View 16 17 18 19 20 21 12 chunks +22 lines, -10 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.mm View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/cookies_tree_model.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 10 chunks +94 lines, -11 lines 0 comments Download
M chrome/browser/cookies_tree_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +118 lines, -6 lines 0 comments Download
M chrome/browser/cookies_tree_model_unittest.cc View 12 13 14 15 16 17 18 19 20 21 10 chunks +154 lines, -76 lines 0 comments Download
M chrome/browser/gtk/options/advanced_contents_gtk.cc View 14 15 16 17 18 19 20 21 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/gtk/options/cookies_view.h View 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +31 lines, -4 lines 0 comments Download
M chrome/browser/gtk/options/cookies_view.cc View 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 10 chunks +117 lines, -35 lines 0 comments Download
M chrome/browser/gtk/options/cookies_view_unittest.cc View 13 14 15 16 17 18 19 20 21 41 chunks +305 lines, -64 lines 0 comments Download
M chrome/browser/in_process_webkit/dom_storage_context.h View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/in_process_webkit/dom_storage_context.cc View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +43 lines, -5 lines 0 comments Download
A chrome/browser/mock_browsing_data_local_storage_helper.h View 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/mock_browsing_data_local_storage_helper.cc View 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/browser/views/options/cookies_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +56 lines, -1 line 0 comments Download
M chrome/browser/views/options/cookies_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 8 chunks +152 lines, -14 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
dumi
http://codereview.chromium.org/523139/diff/2001/28 File chrome/browser/cookies_tree_model.h (right): http://codereview.chromium.org/523139/diff/2001/28#newcode50 chrome/browser/cookies_tree_model.h:50: local_storage_info(local_storage_info) {} maybe add a DCHECK(local_storage_info) if (node_type == ...
10 years, 11 months ago (2010-01-08 23:57:56 UTC) #1
bulach_
many thanks Dumitru, very helpful comments! I added the GTK files now (not yet finished ...
10 years, 11 months ago (2010-01-09 01:06:47 UTC) #2
dumi
> yeah, we took me a while to understand this bit as well.. :) > ...
10 years, 11 months ago (2010-01-09 02:49:38 UTC) #3
jorlow
+ Ian and UI team (for final approval of this change) From what I know, ...
10 years, 11 months ago (2010-01-09 03:01:37 UTC) #4
dumi
sounds good. marcus, then you should probably go ahead with your change (i'll take another ...
10 years, 11 months ago (2010-01-09 03:46:09 UTC) #5
jorlow
http://codereview.chromium.org/523139/diff/6001/7006 File chrome/browser/cookies_tree_model.h (right): http://codereview.chromium.org/523139/diff/6001/7006#newcode51 chrome/browser/cookies_tree_model.h:51: if (node_type == TYPE_LOCAL_STORAGE) DCHECK(local_storage_info); split lines http://codereview.chromium.org/523139/diff/6001/7007 File ...
10 years, 11 months ago (2010-01-09 04:20:49 UTC) #6
bulach_
thanks for all the many helpful comments! I changed a few things as you suggested, ...
10 years, 11 months ago (2010-01-11 18:12:01 UTC) #7
bulach_
as discussed, uploaded a new snapshot renaming local_storage_model to browsing_data_local_storage_fetcher.. On 2010/01/11 18:12:01, bulach wrote: ...
10 years, 11 months ago (2010-01-11 20:40:45 UTC) #8
bulach_
sorry, just hit reply and forgot to publish my replies. http://codereview.chromium.org/523139/diff/6001/7006 File chrome/browser/cookies_tree_model.h (right): http://codereview.chromium.org/523139/diff/6001/7006#newcode51 ...
10 years, 11 months ago (2010-01-11 20:49:01 UTC) #9
jorlow
http://codereview.chromium.org/523139/diff/6001/7007 File chrome/browser/in_process_webkit/dom_storage_context.cc (right): http://codereview.chromium.org/523139/diff/6001/7007#newcode182 chrome/browser/in_process_webkit/dom_storage_context.cc:182: PurgeMemory(); On 2010/01/11 20:49:01, bulach wrote: > On 2010/01/09 ...
10 years, 11 months ago (2010-01-11 21:03:47 UTC) #10
ian fette
http://codereview.chromium.org/523139/diff/6001/7007 File chrome/browser/in_process_webkit/dom_storage_context.cc (right): http://codereview.chromium.org/523139/diff/6001/7007#newcode217 chrome/browser/in_process_webkit/dom_storage_context.cc:217: file_path++) { On 2010/01/11 21:03:48, Jeremy Orlow wrote: > ...
10 years, 11 months ago (2010-01-11 22:02:56 UTC) #11
bulach_
thanks, Jeremy! another batch with the comments addressed, plus a question about the "Fetcher" part ...
10 years, 11 months ago (2010-01-11 22:09:04 UTC) #12
jorlow
Think this was the only question left unresolved... http://codereview.chromium.org/523139/diff/10002/10017 File chrome/browser/browsing_data_local_storage_fetcher.h (right): http://codereview.chromium.org/523139/diff/10002/10017#newcode5 chrome/browser/browsing_data_local_storage_fetcher.h:5: #ifndef ...
10 years, 11 months ago (2010-01-11 22:21:49 UTC) #13
bulach_
Ian: thanks for the explanation! Jeremy: used helper instead of fetcher, seems more appropriate. a ...
10 years, 11 months ago (2010-01-11 23:10:30 UTC) #14
jorlow
Hmm....why didn't these send? http://codereview.chromium.org/523139/diff/9048/13040 File chrome/browser/browsing_data_local_storage_helper.cc (right): http://codereview.chromium.org/523139/diff/9048/13040#newcode14 chrome/browser/browsing_data_local_storage_helper.cc:14: #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" alphabetical order http://codereview.chromium.org/523139/diff/9048/13040#newcode21 ...
10 years, 11 months ago (2010-01-12 00:10:08 UTC) #15
bulach_
thanks Jeremy! please, keep this style comments coming, I'll try to forget the old style ...
10 years, 11 months ago (2010-01-12 00:38:33 UTC) #16
jorlow
LGTM from my side....once dumi LGTM's, I'll land. http://codereview.chromium.org/523139/diff/9048/13027 File chrome/browser/views/options/cookies_view.cc (right): http://codereview.chromium.org/523139/diff/9048/13027#newcode288 chrome/browser/views/options/cookies_view.cc:288: // ...
10 years, 11 months ago (2010-01-12 00:40:36 UTC) #17
dumi
a few more minor comments. http://codereview.chromium.org/523139/diff/9064/9079 File chrome/browser/browsing_data_local_storage_helper.cc (right): http://codereview.chromium.org/523139/diff/9064/9079#newcode68 chrome/browser/browsing_data_local_storage_helper.cc:68: DCHECK(!has_finished_); i'm a bit ...
10 years, 11 months ago (2010-01-12 01:30:18 UTC) #18
dumi
On 2010/01/11 22:02:56, ian fette wrote: > http://codereview.chromium.org/523139/diff/6001/7007 > File chrome/browser/in_process_webkit/dom_storage_context.cc (right): > > http://codereview.chromium.org/523139/diff/6001/7007#newcode217 ...
10 years, 11 months ago (2010-01-12 01:36:04 UTC) #19
jorlow
http://codereview.chromium.org/523139/diff/9064/9079 File chrome/browser/browsing_data_local_storage_helper.cc (right): http://codereview.chromium.org/523139/diff/9064/9079#newcode68 chrome/browser/browsing_data_local_storage_helper.cc:68: DCHECK(!has_finished_); On 2010/01/12 01:30:18, dumi wrote: > i'm a ...
10 years, 11 months ago (2010-01-12 01:52:55 UTC) #20
bulach_
thanks both! another look please? as for the ++iterator++: since I'm still learning the style ...
10 years, 11 months ago (2010-01-12 21:45:10 UTC) #21
jorlow
I'll look before landing....I assume it's all good. On Tue, Jan 12, 2010 at 1:45 ...
10 years, 11 months ago (2010-01-12 21:57:10 UTC) #22
bulach_
Yes, apart from the icon for the local storage node.. who should I ask? On ...
10 years, 11 months ago (2010-01-12 21:59:17 UTC) #23
jorlow
I'll land it once dumi LGTMs. Email glen, ben, and brian about the icon. On ...
10 years, 11 months ago (2010-01-12 22:03:50 UTC) #24
dumi
LGTM http://codereview.chromium.org/523139/diff/7028/6024 File chrome/browser/browsing_data_local_storage_helper.cc (right): http://codereview.chromium.org/523139/diff/7028/6024#newcode69 chrome/browser/browsing_data_local_storage_helper.cc:69: DCHECK(is_fetching_); you're still checking is_fetching_ on the WebKit ...
10 years, 11 months ago (2010-01-12 23:45:44 UTC) #25
jorlow
Marcus, can you please respond to dumi's comments, sync, and upload? I'll land then.
10 years, 11 months ago (2010-01-13 23:45:46 UTC) #26
bulach_
thanks Dumi and Jeremy! synced, resolved, addressed all the remaining comments... please, take another look ...
10 years, 11 months ago (2010-01-16 02:08:17 UTC) #27
jorlow
We're not here Monday. How about tues? On Fri, Jan 15, 2010 at 6:08 PM, ...
10 years, 11 months ago (2010-01-16 02:10:27 UTC) #28
bulach_
Yep, sorry: "logical" monday, not physical.. ;) On Fri, Jan 15, 2010 at 6:09 PM, ...
10 years, 11 months ago (2010-01-16 02:11:37 UTC) #29
bulach_
hi jeremy, first things first: many thanks for helping with reverting this patch, and of ...
10 years, 11 months ago (2010-01-20 22:22:47 UTC) #30
jorlow
LGTM Maybe run gcl try on it again? Seems like it's trying the previous patch? ...
10 years, 11 months ago (2010-01-20 22:30:05 UTC) #31
bulach_
10 years, 11 months ago (2010-01-21 15:13:51 UTC) #32
the mac cookies view is just in, which means I'll need to update it
along with its tests..
(and there are more linux tests that needs updates as well).

I'm working on this change now, and will update this thread again once
I get the try server green on all platforms.
Apologies for this many rounds, but anyway: it's a great learning exercise.. :)

On Wed, Jan 20, 2010 at 10:30 PM,  <jorlow@chromium.org> wrote:
> LGTM
>
> Maybe run gcl try on it again?  Seems like it's trying the previous patch?
>
>
> http://codereview.chromium.org/523139/diff/10031/10036
> File chrome/browser/cookies_tree_model.h (right):
>
> http://codereview.chromium.org/523139/diff/10031/10036#newcode241
> chrome/browser/cookies_tree_model.h:241: Profile* profile,
> 4 spaces in
>
> http://codereview.chromium.org/523139
>

Powered by Google App Engine
This is Rietveld 408576698