replace base::MakeUnique with std::make_unique

This commit is contained in:
Shelley Vohr 2018-04-12 08:48:32 -04:00
parent 97fb15ac49
commit b05932310b
No known key found for this signature in database
GPG key ID: F13993A75599653C
28 changed files with 50 additions and 50 deletions

View file

@ -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);
}
}