Changeset 239748 in webkit


Ignore:
Timestamp:
Jan 8, 2019, 2:23:12 PM (6 years ago)
Author:
achristensen@apple.com
Message:

Fix more assertions after r239710
https://bugs.webkit.org/show_bug.cgi?id=193237

  • NetworkProcess/cache/NetworkCacheStorage.h:

(WebKit::NetworkCache::Storage::store):
Make default parameter an empty lambda instead of a null CompletionHandler.
This way it can be called once instead of thinking it has already been called.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r239747 r239748  
     12019-01-08  Alex Christensen  <achristensen@webkit.org>
     2
     3        Fix more assertions after r239710
     4        https://bugs.webkit.org/show_bug.cgi?id=193237
     5
     6        * NetworkProcess/cache/NetworkCacheStorage.h:
     7        (WebKit::NetworkCache::Storage::store):
     8        Make default parameter an empty lambda instead of a null CompletionHandler.
     9        This way it can be called once instead of thinking it has already been called.
     10
    1112019-01-08  Brent Fulgham  <bfulgham@apple.com>
    212
  • trunk/Source/WebKit/NetworkProcess/cache/NetworkCacheStorage.h

    r239740 r239748  
    8383
    8484    using MappedBodyHandler = Function<void (const Data& mappedBody)>;
    85     void store(const Record&, MappedBodyHandler&&, CompletionHandler<void(int)>&& = { });
     85    void store(const Record&, MappedBodyHandler&&, CompletionHandler<void(int)>&& = [] (int) { });
    8686
    8787    void remove(const Key&);
Note: See TracChangeset for help on using the changeset viewer.