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

Unified Diff: components/mus/public/cpp/lib/window_surface.cc

Issue 1906623003: Convert //components/mus from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « components/mus/public/cpp/lib/window.cc ('k') | components/mus/public/cpp/lib/window_tree_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/window_surface.cc
diff --git a/components/mus/public/cpp/lib/window_surface.cc b/components/mus/public/cpp/lib/window_surface.cc
index 746d31c0140fde424ff67f56a7cd00c8efdc3583..0fee265df21da2f299ee2254fe58d4e3775675eb 100644
--- a/components/mus/public/cpp/lib/window_surface.cc
+++ b/components/mus/public/cpp/lib/window_surface.cc
@@ -4,14 +4,15 @@
#include "components/mus/public/cpp/window_surface.h"
+#include "base/memory/ptr_util.h"
#include "components/mus/public/cpp/window_surface_client.h"
#include "mojo/converters/surfaces/surfaces_type_converters.h"
namespace mus {
// static
-scoped_ptr<WindowSurface> WindowSurface::Create(
- scoped_ptr<WindowSurfaceBinding>* surface_binding) {
+std::unique_ptr<WindowSurface> WindowSurface::Create(
+ std::unique_ptr<WindowSurfaceBinding>* surface_binding) {
mojom::SurfacePtr surface;
mojom::SurfaceClientPtr surface_client;
mojo::InterfaceRequest<mojom::SurfaceClient> surface_client_request =
@@ -19,8 +20,8 @@ scoped_ptr<WindowSurface> WindowSurface::Create(
surface_binding->reset(new WindowSurfaceBinding(
GetProxy(&surface), surface_client.PassInterface()));
- return make_scoped_ptr(new WindowSurface(surface.PassInterface(),
- std::move(surface_client_request)));
+ return base::WrapUnique(new WindowSurface(surface.PassInterface(),
+ std::move(surface_client_request)));
}
WindowSurface::~WindowSurface() {}
« no previous file with comments | « components/mus/public/cpp/lib/window.cc ('k') | components/mus/public/cpp/lib/window_tree_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698