Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/caca/scoped_caca_types.h ('k') | ui/ozone/platform/cast/overlay_manager_cast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc
diff --git a/ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc b/ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc
index e03335f25fcf5496b4dddfa92eaa86e87e5d6361..bf56031ed0fe6f8f9f1678a8bacf803ab79e84dc 100644
--- a/ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc
+++ b/ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc
@@ -5,6 +5,7 @@
#include "ui/ozone/platform/cast/client_native_pixmap_factory_cast.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "ui/gfx/buffer_types.h"
#include "ui/ozone/public/client_native_pixmap.h"
#include "ui/ozone/public/client_native_pixmap_factory.h"
@@ -35,11 +36,11 @@ class ClientNativePixmapFactoryCast : public ClientNativePixmapFactory {
usage == gfx::BufferUsage::SCANOUT;
}
- scoped_ptr<ClientNativePixmap> ImportFromHandle(
+ std::unique_ptr<ClientNativePixmap> ImportFromHandle(
const gfx::NativePixmapHandle& handle,
const gfx::Size& size,
gfx::BufferUsage usage) override {
- return make_scoped_ptr(new ClientNativePixmapCast());
+ return base::WrapUnique(new ClientNativePixmapCast());
}
};
« no previous file with comments | « ui/ozone/platform/caca/scoped_caca_types.h ('k') | ui/ozone/platform/cast/overlay_manager_cast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698