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

Issue 2140193002: IndexedDB: Saving data loss status in IndexedDBPendingConnection. (Closed)

Created:
4 years, 5 months ago by cmumford
Modified:
4 years, 5 months ago
Reviewers:
jsbell
CC:
chromium-reviews, darin-cc_chromium.org, jsbell+idb_chromium.org, jam, cmumford
Base URL:
https://chromium.googlesource.com/chromium/src.git@idb-data-loss
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IndexedDB: Saving data loss status in IndexedDBPendingConnection. Database data loss is a non-standard extension to IDBVersionChangeEvent (https://www.w3.org/Bugs/Public/show_bug.cgi?id=22370). This state only needs to be persisted as part of the database open. So moving this value from IndexedDBCallbacks (used for any IDB call) to IndexedDBPendingConnection (only used during database open). BUG=627484 Committed: https://crrev.com/fbd8d172f1497641c4d6c9c56025d18e7d50eb00 Cr-Commit-Position: refs/heads/master@{#407208}

Patch Set 1 #

Patch Set 2 : Fixed memory leak & simplified impl. #

Patch Set 3 : Deleted commented out code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -164 lines) Patch
M content/browser/indexed_db/indexed_db_callbacks.h View 4 chunks +4 lines, -12 lines 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks.cc View 15 chunks +17 lines, -16 lines 0 comments Download
M content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A content/browser/indexed_db/indexed_db_data_loss_info.h View 1 chunk +21 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 1 2 13 chunks +33 lines, -34 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_unittest.cc View 1 5 chunks +25 lines, -19 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 1 1 chunk +7 lines, -7 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_factory_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_factory_impl.cc View 1 4 chunks +14 lines, -15 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory_unittest.cc View 1 7 chunks +40 lines, -39 lines 0 comments Download
M content/browser/indexed_db/indexed_db_pending_connection.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_unittest.cc View 1 2 chunks +15 lines, -16 lines 0 comments Download
M content/browser/indexed_db/mock_indexed_db_factory.h View 1 1 chunk +10 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
cmumford
jsbell@ I made this change because the current CL to Mojo'ify IDB deletes the IndexedDBCallbacks ...
4 years, 5 months ago (2016-07-12 15:31:52 UTC) #1
cmumford
4 years, 5 months ago (2016-07-12 16:03:15 UTC) #3
jsbell
I'm going to need to chew on this for a while longer. It collides rather ...
4 years, 5 months ago (2016-07-12 23:23:00 UTC) #4
cmumford
Simpler version w/o leaks.
4 years, 5 months ago (2016-07-22 16:23:44 UTC) #7
jsbell
lgtm
4 years, 5 months ago (2016-07-22 17:00:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2140193002/40001
4 years, 5 months ago (2016-07-22 17:36:43 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-22 18:25:15 UTC) #11
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 18:27:06 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fbd8d172f1497641c4d6c9c56025d18e7d50eb00
Cr-Commit-Position: refs/heads/master@{#407208}

Powered by Google App Engine
This is Rietveld 408576698