Bug 200818

Summary: StorageManager does not need to subclass RefCounted
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, beidson, commit-queue, ggaren, sihui_liu, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Chris Dumez
Reported 2019-08-16 10:07:28 PDT
StorageManager does not need to subclass RefCounted. It is owned by the StorageManagerSet and is never ref'd / deref'd.
Attachments
Patch (4.62 KB, patch)
2019-08-16 10:09 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2019-08-16 10:09:15 PDT
Geoffrey Garen
Comment 2 2019-08-16 10:27:28 PDT
Comment on attachment 376507 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=376507&action=review r=me > Source/WebKit/NetworkProcess/WebStorage/StorageManagerSet.cpp:69 > + return std::make_unique<StorageManager>(WTFMove(localStorageDirectory)); Please consider using WTF::makeUnique (a new helper added yesterday).
Chris Dumez
Comment 3 2019-08-16 10:29:33 PDT
(In reply to Geoffrey Garen from comment #2) > Comment on attachment 376507 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=376507&action=review > > r=me > > > Source/WebKit/NetworkProcess/WebStorage/StorageManagerSet.cpp:69 > > + return std::make_unique<StorageManager>(WTFMove(localStorageDirectory)); > > Please consider using WTF::makeUnique (a new helper added yesterday). I would if it existed. The patch you're talking about does not seem to have landed.
WebKit Commit Bot
Comment 4 2019-08-16 11:22:22 PDT
Comment on attachment 376507 [details] Patch Clearing flags on attachment: 376507 Committed r248780: <https://trac.webkit.org/changeset/248780>
WebKit Commit Bot
Comment 5 2019-08-16 11:22:24 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6 2019-08-16 11:23:20 PDT
Note You need to log in before you can comment on or make changes to this bug.