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

Issue 10918220: Delete the cookie DB when an unrecoverable error is detected. (Closed)

Created:
8 years, 3 months ago by erikwright (departed)
Modified:
8 years, 3 months ago
CC:
chromium-reviews, erikwright (departed), cbentzel+watch_chromium.org, darin-cc_chromium.org, wtc, rkn
Visibility:
Public.

Description

Delete the cookie DB when an unrecoverable error is detected. The in-progress session will proceed without persisting cookies. The database will be re-established on disk at the beginning of the next session. R=shess@chromium.org BUG=141591 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157011

Patch Set 1 #

Patch Set 2 : style. #

Total comments: 12

Patch Set 3 : Raze instead of deleting. #

Total comments: 1

Patch Set 4 : Ensure that backlink is broken before Backend goes away. #

Patch Set 5 : RefCounted require protected destructor. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -2 lines) Patch
M chrome/browser/net/sqlite_persistent_cookie_store.cc View 1 2 3 4 7 chunks +148 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
erikwright (departed)
shess, PTAL.
8 years, 3 months ago (2012-09-13 17:40:04 UTC) #1
Scott Hess - ex-Googler
Since you want to get this landed, I'll post my first pass from last night ...
8 years, 3 months ago (2012-09-14 17:01:34 UTC) #2
Scott Hess - ex-Googler
OK, tiny bit more. http://codereview.chromium.org/10918220/diff/1001/chrome/browser/net/sqlite_persistent_cookie_store.cc File chrome/browser/net/sqlite_persistent_cookie_store.cc (right): http://codereview.chromium.org/10918220/diff/1001/chrome/browser/net/sqlite_persistent_cookie_store.cc#newcode126 chrome/browser/net/sqlite_persistent_cookie_store.cc:126: // Backend will call reset_backend() ...
8 years, 3 months ago (2012-09-14 17:15:16 UTC) #3
erikwright (departed)
PTAL. I manually tested the Raze and it worked fine in my case, at least. ...
8 years, 3 months ago (2012-09-14 18:11:02 UTC) #4
Scott Hess - ex-Googler
I'm about 70% on wanting a better way to break the back-link. I'd hate to ...
8 years, 3 months ago (2012-09-14 18:34:03 UTC) #5
erikwright (departed)
PTAL. I think that the reference breaking is provably safe and simpler than a weak ...
8 years, 3 months ago (2012-09-14 18:43:26 UTC) #6
Scott Hess - ex-Googler
LGTM.
8 years, 3 months ago (2012-09-14 19:21:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/10918220/10001
8 years, 3 months ago (2012-09-14 19:22:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/10918220/14002
8 years, 3 months ago (2012-09-14 20:27:13 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 3 months ago (2012-09-14 22:37:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/10918220/14002
8 years, 3 months ago (2012-09-14 22:47:41 UTC) #11
commit-bot: I haz the power
Commit queue patch verification failed without an error message. Something went wrong, probably a crash, ...
8 years, 3 months ago (2012-09-15 17:39:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/10918220/14002
8 years, 3 months ago (2012-09-15 17:39:27 UTC) #13
commit-bot: I haz the power
8 years, 3 months ago (2012-09-15 20:15:43 UTC) #14
Change committed as 157011

Powered by Google App Engine
This is Rietveld 408576698