replace base::MakeUnique with std::make_unique
This commit is contained in:
parent
97fb15ac49
commit
b05932310b
28 changed files with 50 additions and 50 deletions
|
@ -37,7 +37,7 @@ void IconLoader::ReadIcon() {
|
|||
|
||||
if (icon_size_ == ALL) {
|
||||
// The NSImage already has all sizes.
|
||||
image = base::MakeUnique<gfx::Image>([icon retain]);
|
||||
image = std::make_unique<gfx::Image>([icon retain]);
|
||||
} else {
|
||||
NSSize size = NSZeroSize;
|
||||
switch (icon_size_) {
|
||||
|
@ -53,7 +53,7 @@ void IconLoader::ReadIcon() {
|
|||
gfx::ImageSkia image_skia(gfx::ImageSkiaFromResizedNSImage(icon, size));
|
||||
if (!image_skia.isNull()) {
|
||||
image_skia.MakeThreadSafe();
|
||||
image = base::MakeUnique<gfx::Image>(image_skia);
|
||||
image = std::make_unique<gfx::Image>(image_skia);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue