-
Notifications
You must be signed in to change notification settings - Fork 892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] - Fix #7026: Added Brave-Core Image Fetcher API #17400
Conversation
} | ||
|
||
- (void)dealloc { | ||
image_fetcher_.reset(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary? Shouldn't it reset automatically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary. I usually add it anyway. But fixed.
f0e9179
to
d6ae49c
Compare
|
4 similar comments
|
|
|
|
d6ae49c
to
93f4f87
Compare
callback(net::NSURLWithGURL(icon_url), | ||
icon.IsEmpty() ? nullptr : icon.ToUIImage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it OK to pass nullptr
here? Not sure where to follow to see if this callback is defined publicly anywhere and needs a nullable
annotation. Is this the callback that eventually gets to web_image.h
's method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's okay to be null on the iOS side :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering about that nullptr but otherwise looks good
Summary
Resolves brave/brave-ios#7026
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: