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

Issue 1865213006: Replace setIndexedDBClientCreateFunction madness with Supplements (Closed)

Created:
4 years, 8 months ago by jsbell
Modified:
4 years, 8 months ago
Reviewers:
haraken, sof
CC:
chromium-reviews, blink-reviews, haraken, jsbell+idb_chromium.org, cmumford
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace setIndexedDBClientCreateFunction madness with Supplements IndexedDBClient was a special snowflake, created on demand using a function pointer. Meanwhile, all of the other module clients (that give access to web/ features like content settings) are implemented using Supplements on Frame/Worker and minted during context creation. This has led to bugs during unrelated refactoring including races. So just make IndexedDBClient a Supplement like the rest. R=sigbjornf@opera.com,haraken@chromium.org BUG=472754 Committed: https://crrev.com/da287954e2164abe44794f1e0ffb257d5a20cb97 Cr-Commit-Position: refs/heads/master@{#387117}

Patch Set 1 #

Total comments: 3

Patch Set 2 : remove obsolete #include #

Total comments: 4

Patch Set 3 : Simplify per review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -48 lines) Patch
M third_party/WebKit/Source/modules/indexeddb/DOMWindowIndexedDatabase.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBFactory.h View 3 chunks +4 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp View 4 chunks +4 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IndexedDBClient.h View 1 2 1 chunk +14 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IndexedDBClient.cpp View 1 chunk +28 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/IndexedDBClientImpl.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/IndexedDBClientImpl.cpp View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WorkerContentSettingsClient.cpp View 1 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WorkerGlobalScopeProxyProviderImpl.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
jsbell
haraken@, sof@ - please take a look? https://codereview.chromium.org/1865213006/diff/1/third_party/WebKit/Source/web/IndexedDBClientImpl.h File third_party/WebKit/Source/web/IndexedDBClientImpl.h (right): https://codereview.chromium.org/1865213006/diff/1/third_party/WebKit/Source/web/IndexedDBClientImpl.h#newcode38 third_party/WebKit/Source/web/IndexedDBClientImpl.h:38: // TODO(haraken): ...
4 years, 8 months ago (2016-04-08 19:07:02 UTC) #1
sof
lgtm, that's much better - what's there not to like about this piece of clear-headed ...
4 years, 8 months ago (2016-04-08 19:51:58 UTC) #2
jsbell
https://codereview.chromium.org/1865213006/diff/1/third_party/WebKit/Source/web/WorkerContentSettingsClient.cpp File third_party/WebKit/Source/web/WorkerContentSettingsClient.cpp (right): https://codereview.chromium.org/1865213006/diff/1/third_party/WebKit/Source/web/WorkerContentSettingsClient.cpp#newcode36 third_party/WebKit/Source/web/WorkerContentSettingsClient.cpp:36: #include "web/IndexedDBClientImpl.h" On 2016/04/08 19:51:58, sof wrote: > nit: ...
4 years, 8 months ago (2016-04-08 20:04:51 UTC) #3
haraken
LGTM, this is a nice clean-up! https://codereview.chromium.org/1865213006/diff/20001/third_party/WebKit/Source/web/IndexedDBClientImpl.h File third_party/WebKit/Source/web/IndexedDBClientImpl.h (right): https://codereview.chromium.org/1865213006/diff/20001/third_party/WebKit/Source/web/IndexedDBClientImpl.h#newcode38 third_party/WebKit/Source/web/IndexedDBClientImpl.h:38: // TODO(haraken): Remove ...
4 years, 8 months ago (2016-04-09 01:12:40 UTC) #5
jsbell
Thanks! https://codereview.chromium.org/1865213006/diff/20001/third_party/WebKit/Source/web/IndexedDBClientImpl.h File third_party/WebKit/Source/web/IndexedDBClientImpl.h (right): https://codereview.chromium.org/1865213006/diff/20001/third_party/WebKit/Source/web/IndexedDBClientImpl.h#newcode38 third_party/WebKit/Source/web/IndexedDBClientImpl.h:38: // TODO(haraken): Remove IndexedDBClientImpl. On 2016/04/09 01:12:40, haraken ...
4 years, 8 months ago (2016-04-13 18:57:58 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865213006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865213006/40001
4 years, 8 months ago (2016-04-13 18:58:18 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/50325)
4 years, 8 months ago (2016-04-13 19:11:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865213006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865213006/40001
4 years, 8 months ago (2016-04-13 21:53:42 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-13 22:15:54 UTC) #15
commit-bot: I haz the power
4 years, 8 months ago (2016-04-13 22:17:39 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/da287954e2164abe44794f1e0ffb257d5a20cb97
Cr-Commit-Position: refs/heads/master@{#387117}

Powered by Google App Engine
This is Rietveld 408576698