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

Issue 7966005: Move TransportSecurityPersister completely to IO thread. (Closed)

Created:
9 years, 3 months ago by Paweł Hajdan Jr.
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Move TransportSecurityPersister completely to IO thread. This should fix problems caused by calling ImportantFileWriter on wrong threads. BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102139

Patch Set 1 #

Total comments: 4

Patch Set 2 : fixes #

Total comments: 7

Patch Set 3 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -109 lines) Patch
M chrome/browser/browsing_data_remover.cc View 1 chunk +1 line, -8 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 4 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 2 chunks +5 lines, -16 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 4 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 2 chunks +4 lines, -16 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 6 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 5 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/transport_security_persister.h View 1 2 3 chunks +8 lines, -15 lines 0 comments Download
M chrome/browser/transport_security_persister.cc View 1 2 4 chunks +49 lines, -23 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M net/base/transport_security_state.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Paweł Hajdan Jr.
9 years, 3 months ago (2011-09-19 23:19:50 UTC) #1
willchan no longer on Chromium
http://codereview.chromium.org/7966005/diff/1/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/7966005/diff/1/chrome/browser/profiles/profile_impl_io_data.cc#newcode191 chrome/browser/profiles/profile_impl_io_data.cc:191: NewRunnableFunction( This is going to be deprecated soon (stay ...
9 years, 3 months ago (2011-09-20 01:29:50 UTC) #2
Paweł Hajdan Jr.
PTAL I'm not sure if base::Unretained and deleter(this) is better than refcounting Loader, but I've ...
9 years, 3 months ago (2011-09-20 18:32:49 UTC) #3
willchan no longer on Chromium
I agree with your point about base::Unretained(). I'm ambivalent to either solution, they both suck. ...
9 years, 3 months ago (2011-09-20 19:09:04 UTC) #4
Paweł Hajdan Jr.
PTAL http://codereview.chromium.org/7966005/diff/6001/chrome/browser/profiles/off_the_record_profile_impl.h File chrome/browser/profiles/off_the_record_profile_impl.h (right): http://codereview.chromium.org/7966005/diff/6001/chrome/browser/profiles/off_the_record_profile_impl.h#newcode134 chrome/browser/profiles/off_the_record_profile_impl.h:134: const base::Time& time) OVERRIDE; On 2011/09/20 19:09:04, willchan ...
9 years, 3 months ago (2011-09-21 17:59:19 UTC) #5
willchan no longer on Chromium
LGTM http://codereview.chromium.org/7966005/diff/6001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): http://codereview.chromium.org/7966005/diff/6001/chrome/browser/profiles/profile_io_data.cc#newcode433 chrome/browser/profiles/profile_io_data.cc:433: transport_security_state_ = new net::TransportSecurityState( On 2011/09/21 17:59:19, Paweł ...
9 years, 3 months ago (2011-09-21 18:07:48 UTC) #6
agl
9 years, 3 months ago (2011-09-21 18:40:43 UTC) #7
willchan knows about lifetime stuff far better than I so I defer to him. LGTM

Powered by Google App Engine
This is Rietveld 408576698