Bug 185685 - [Wi-Fi Assertions] Adopt WiFiAssertionHolderAdditions
Summary: [Wi-Fi Assertions] Adopt WiFiAssertionHolderAdditions
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andy Estes
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-05-16 10:03 PDT by Andy Estes
Modified: 2018-05-16 12:39 PDT (History)
8 users (show)

See Also:


Attachments
Patch (2.24 KB, patch)
2018-05-16 10:04 PDT, Andy Estes
no flags Details | Formatted Diff | Diff
Patch (2.34 KB, patch)
2018-05-16 12:21 PDT, Andy Estes
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Estes 2018-05-16 10:03:49 PDT
[Wi-Fi Assertions] Adopt WiFiAssertionHolderAdditions
Comment 1 Andy Estes 2018-05-16 10:04:19 PDT
Created attachment 340497 [details]
Patch
Comment 2 Andy Estes 2018-05-16 10:04:32 PDT
rdar://problem/40136681
Comment 3 Sam Weinig 2018-05-16 10:18:20 PDT
Comment on attachment 340497 [details]
Patch

I might use less generic names than holdAssertion()/releaseAssertion(), but otherwise, looks good.
Comment 4 Timothy Hatcher 2018-05-16 10:33:29 PDT
Comment on attachment 340497 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=340497&action=review

> Source/WebKit/NetworkProcess/cocoa/WiFiAssertionHolder.cpp:39
> +    holdAssertion();

You will either need to add #if USE(APPLE_INTERNAL_SDK) around the call here or define empty stub functions above.

> Source/WebKit/NetworkProcess/cocoa/WiFiAssertionHolder.cpp:44
> +    releaseAssertion();

Ditto.
Comment 5 Andy Estes 2018-05-16 12:07:12 PDT
(In reply to Timothy Hatcher from comment #4)
> Comment on attachment 340497 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=340497&action=review
> 
> > Source/WebKit/NetworkProcess/cocoa/WiFiAssertionHolder.cpp:39
> > +    holdAssertion();
> 
> You will either need to add #if USE(APPLE_INTERNAL_SDK) around the call here
> or define empty stub functions above.
> 
> > Source/WebKit/NetworkProcess/cocoa/WiFiAssertionHolder.cpp:44
> > +    releaseAssertion();
> 
> Ditto.

Technically I don't need to due to how HAVE_MOBILE_WIFI is defined, but I agree this is  the right way to do it, so I'll do it!
Comment 6 Andy Estes 2018-05-16 12:21:01 PDT
Created attachment 340513 [details]
Patch
Comment 7 WebKit Commit Bot 2018-05-16 12:39:36 PDT
Comment on attachment 340513 [details]
Patch

Clearing flags on attachment: 340513

Committed r231863: <https://trac.webkit.org/changeset/231863>
Comment 8 WebKit Commit Bot 2018-05-16 12:39:37 PDT
All reviewed patches have been landed.  Closing bug.