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

Unified Diff: ui/ozone/platform/drm/host/drm_overlay_manager.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/drm/host/drm_overlay_manager.h ('k') | ui/ozone/platform/drm/host/drm_window_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/host/drm_overlay_manager.cc
diff --git a/ui/ozone/platform/drm/host/drm_overlay_manager.cc b/ui/ozone/platform/drm/host/drm_overlay_manager.cc
index 9ba5746f75adaf6dad4a4b934ee99d308150f76c..7255496b809767b50d8fd368bd6a3b13880d6669 100644
--- a/ui/ozone/platform/drm/host/drm_overlay_manager.cc
+++ b/ui/ozone/platform/drm/host/drm_overlay_manager.cc
@@ -9,6 +9,7 @@
#include <algorithm>
#include "base/command_line.h"
+#include "base/memory/ptr_util.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/ozone/platform/drm/host/drm_overlay_candidates_host.h"
#include "ui/ozone/platform/drm/host/drm_window_host.h"
@@ -37,11 +38,11 @@ DrmOverlayManager::~DrmOverlayManager() {
proxy_->UnRegisterHandlerForDrmOverlayManager();
}
-scoped_ptr<OverlayCandidatesOzone> DrmOverlayManager::CreateOverlayCandidates(
- gfx::AcceleratedWidget w) {
+std::unique_ptr<OverlayCandidatesOzone>
+DrmOverlayManager::CreateOverlayCandidates(gfx::AcceleratedWidget w) {
if (!is_supported_)
return nullptr;
- return make_scoped_ptr(new DrmOverlayCandidatesHost(this, w));
+ return base::WrapUnique(new DrmOverlayCandidatesHost(this, w));
}
void DrmOverlayManager::CheckOverlaySupport(
« no previous file with comments | « ui/ozone/platform/drm/host/drm_overlay_manager.h ('k') | ui/ozone/platform/drm/host/drm_window_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698