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

Unified Diff: ui/ozone/platform/cast/overlay_manager_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/cast/overlay_manager_cast.h ('k') | ui/ozone/platform/cast/ozone_platform_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/cast/overlay_manager_cast.cc
diff --git a/ui/ozone/platform/cast/overlay_manager_cast.cc b/ui/ozone/platform/cast/overlay_manager_cast.cc
index 993da20969752eaa321763fc8294bc1c79329220..b83c7da9fa0def9edd6e5b41978ad97d75ea6c20 100644
--- a/ui/ozone/platform/cast/overlay_manager_cast.cc
+++ b/ui/ozone/platform/cast/overlay_manager_cast.cc
@@ -5,6 +5,7 @@
#include "ui/ozone/platform/cast/overlay_manager_cast.h"
#include "base/lazy_instance.h"
+#include "base/memory/ptr_util.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/ozone/public/overlay_candidates_ozone.h"
@@ -77,9 +78,9 @@ OverlayManagerCast::OverlayManagerCast() {
OverlayManagerCast::~OverlayManagerCast() {
}
-scoped_ptr<OverlayCandidatesOzone> OverlayManagerCast::CreateOverlayCandidates(
- gfx::AcceleratedWidget w) {
- return make_scoped_ptr(new OverlayCandidatesCast());
+std::unique_ptr<OverlayCandidatesOzone>
+OverlayManagerCast::CreateOverlayCandidates(gfx::AcceleratedWidget w) {
+ return base::WrapUnique(new OverlayCandidatesCast());
}
// static
« no previous file with comments | « ui/ozone/platform/cast/overlay_manager_cast.h ('k') | ui/ozone/platform/cast/ozone_platform_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698