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

Issue 1024463006: Destroy the notification database when corruption occurs. (Closed)

Created:
5 years, 9 months ago by Peter Beverloo
Modified:
5 years, 8 months ago
Reviewers:
johnme, cmumford
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@n-db-SWContextObserver
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Destroy the notification database when corruption occurs. When corruption occurs in the notification database, destroy the entire database, which means that the database will be re-created during the next invocation. If the corruption occurs while opening the database, try re-opening it immediately so that the operation can continue. Design document: http://goo.gl/TciXVp BUG=447628 Committed: https://crrev.com/72f559a45853c2191377386aa117a0c48c6e8be8 Cr-Commit-Position: refs/heads/master@{#322709}

Patch Set 1 #

Patch Set 2 : another test #

Total comments: 8

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -15 lines) Patch
M content/browser/notifications/platform_notification_context_impl.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/notifications/platform_notification_context_impl.cc View 1 2 3 4 8 chunks +67 lines, -15 lines 0 comments Download
M content/browser/notifications/platform_notification_context_unittest.cc View 1 2 3 4 2 chunks +71 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
Peter Beverloo
+johnme for notifications +cmumford Christopher, you mentioned in an earlier CL[1] that LevelDB has the ...
5 years, 9 months ago (2015-03-19 21:33:15 UTC) #2
cmumford
https://codereview.chromium.org/1024463006/diff/20001/content/browser/notifications/platform_notification_context_impl.cc File content/browser/notifications/platform_notification_context_impl.cc (right): https://codereview.chromium.org/1024463006/diff/20001/content/browser/notifications/platform_notification_context_impl.cc#newcode28 content/browser/notifications/platform_notification_context_impl.cc:28: FAIL_OPERATION, I can't really think of a time where ...
5 years, 9 months ago (2015-03-19 22:12:28 UTC) #3
Peter Beverloo
Thank you for the review! https://codereview.chromium.org/1024463006/diff/20001/content/browser/notifications/platform_notification_context_impl.cc File content/browser/notifications/platform_notification_context_impl.cc (right): https://codereview.chromium.org/1024463006/diff/20001/content/browser/notifications/platform_notification_context_impl.cc#newcode28 content/browser/notifications/platform_notification_context_impl.cc:28: FAIL_OPERATION, On 2015/03/19 22:12:27, ...
5 years, 9 months ago (2015-03-20 14:31:27 UTC) #4
johnme
https://codereview.chromium.org/1024463006/diff/40001/content/browser/notifications/platform_notification_context_impl.cc File content/browser/notifications/platform_notification_context_impl.cc (right): https://codereview.chromium.org/1024463006/diff/40001/content/browser/notifications/platform_notification_context_impl.cc#newcode182 content/browser/notifications/platform_notification_context_impl.cc:182: // Blow away the database if reading data failed ...
5 years, 9 months ago (2015-03-20 15:29:07 UTC) #5
cmumford
https://codereview.chromium.org/1024463006/diff/40001/content/browser/notifications/platform_notification_context_impl.cc File content/browser/notifications/platform_notification_context_impl.cc (right): https://codereview.chromium.org/1024463006/diff/40001/content/browser/notifications/platform_notification_context_impl.cc#newcode186 content/browser/notifications/platform_notification_context_impl.cc:186: DestroyDatabase(); Well I guess you will have times where ...
5 years, 9 months ago (2015-03-20 17:36:52 UTC) #6
Peter Beverloo
All done :-). https://codereview.chromium.org/1024463006/diff/40001/content/browser/notifications/platform_notification_context_impl.cc File content/browser/notifications/platform_notification_context_impl.cc (right): https://codereview.chromium.org/1024463006/diff/40001/content/browser/notifications/platform_notification_context_impl.cc#newcode182 content/browser/notifications/platform_notification_context_impl.cc:182: // Blow away the database if ...
5 years, 9 months ago (2015-03-20 18:55:38 UTC) #7
cmumford
lgtm
5 years, 9 months ago (2015-03-20 19:34:23 UTC) #8
johnme
lgtm
5 years, 9 months ago (2015-03-23 18:34:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024463006/80001
5 years, 8 months ago (2015-03-28 20:49:45 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-03-28 21:36:50 UTC) #13
commit-bot: I haz the power
5 years, 8 months ago (2015-03-28 21:37:33 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/72f559a45853c2191377386aa117a0c48c6e8be8
Cr-Commit-Position: refs/heads/master@{#322709}

Powered by Google App Engine
This is Rietveld 408576698