Make WebsiteDataStore::processPools() parameter mandatory to make it clear it may create a process pool. Otherwise, people call processPools() to iterate over existing process pools and do not realize that it actually creates a process pool.
Created attachment 392348 [details] Patch
Comment on attachment 392348 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=392348&action=review > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h:304 > + enum class EnsureHasProcessPool : bool { No, Yes }; > + HashSet<RefPtr<WebProcessPool>> processPools(EnsureHasProcessPool, size_t limit = std::numeric_limits<size_t>::max()) const; The idiom we often use for things like this is to have two functions: 1) ensureProcessPools() 2) existingProcessPools() or possibly just processPools().
Created attachment 392434 [details] Patch
Created attachment 392436 [details] Patch
Comment on attachment 392436 [details] Patch Clearing flags on attachment: 392436 Committed r257855: <https://trac.webkit.org/changeset/257855>
All reviewed patches have been landed. Closing bug.
<rdar://problem/60045083>