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

Issue 6670033: Use copies of canned browsing data helpers to populate the cookies tree model. (Closed)

Created:
9 years, 9 months ago by jochen (gone - plz use gerrit)
Modified:
9 years, 7 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, brettw-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Use copies of canned browsing data helpers to populate the cookies tree model. If the fetching of data is cancelled, the helpers might not be ready yet to be reused, triggering an assertion. BUG=62311 TEST=interactive ui tests:CollectedCookies.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78198

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -12 lines) Patch
M chrome/browser/browsing_data_appcache_helper.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data_appcache_helper.cc View 1 chunk +11 lines, -1 line 0 comments Download
M chrome/browser/browsing_data_database_helper.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data_database_helper.cc View 1 chunk +13 lines, -1 line 0 comments Download
M chrome/browser/browsing_data_indexed_db_helper.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data_indexed_db_helper.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data_local_storage_helper.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data_local_storage_helper.cc View 1 chunk +14 lines, -1 line 0 comments Download
M chrome/browser/collected_cookies_uitest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/tab_contents/tab_specific_content_settings.cc View 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jochen (gone - plz use gerrit)
please review
9 years, 9 months ago (2011-03-11 13:02:43 UTC) #1
Paweł Hajdan Jr.
Changes look fine at a glance, but I don't really know this code enough. Could ...
9 years, 9 months ago (2011-03-11 14:32:09 UTC) #2
jochen (gone - plz use gerrit)
bernhard, can you have a look?
9 years, 9 months ago (2011-03-11 14:40:15 UTC) #3
Bernhard Bauer
On 2011/03/11 14:40:15, jochen wrote: > bernhard, can you have a look? Does this mean ...
9 years, 9 months ago (2011-03-15 10:39:01 UTC) #4
jochen (gone - plz use gerrit)
On 2011/03/15 10:39:01, Bernhard Bauer wrote: > On 2011/03/11 14:40:15, jochen wrote: > > bernhard, ...
9 years, 9 months ago (2011-03-15 10:44:45 UTC) #5
Bernhard Bauer
9 years, 9 months ago (2011-03-15 10:52:32 UTC) #6
On 2011/03/15 10:44:45, jochen wrote:
> On 2011/03/15 10:39:01, Bernhard Bauer wrote:
> > On 2011/03/11 14:40:15, jochen wrote:
> > > bernhard, can you have a look?
> > 
> > Does this mean that we possibly show old data in the cookie tree model?
> 
> that's already now the case. The model is not "live", i.e. once it is created,
> it reads the data from all browser helpers and displays the state at the time
of
> creation.
> 
> By cloning the helpers before creating the cookies tree model, no further
delay
> wrt the freshness of the data is introduced.
> 
> The problem this CL is supposed to fix is when you create a cookies tree
model,
> delete it again, before the async data fetch from the browsing data helpers
> completed, and immediately recreate one, then the browsing data helpers
trigger
> a DCHECK that no new fetch is started while an old one didn't complete yet.

I see. LGTM then.

Powered by Google App Engine
This is Rietveld 408576698