chore: fix various chromium-style errors in windows (#13394)
These errors weren't previously picked up because the GN build wasn't running on Windows.
This commit is contained in:
parent
1c64ac8c41
commit
6f91af9343
24 changed files with 100 additions and 57 deletions
|
@ -245,15 +245,14 @@ HICON NativeImage::GetHICON(int size) {
|
|||
|
||||
// First try loading the icon with specified size.
|
||||
if (!hicon_path_.empty()) {
|
||||
hicons_[size] = std::move(ReadICOFromPath(size, hicon_path_));
|
||||
hicons_[size] = ReadICOFromPath(size, hicon_path_);
|
||||
return hicons_[size].get();
|
||||
}
|
||||
|
||||
// Then convert the image to ICO.
|
||||
if (image_.IsEmpty())
|
||||
return NULL;
|
||||
hicons_[size] =
|
||||
std::move(IconUtil::CreateHICONFromSkBitmap(image_.AsBitmap()));
|
||||
hicons_[size] = IconUtil::CreateHICONFromSkBitmap(image_.AsBitmap());
|
||||
return hicons_[size].get();
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue