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

Unified Diff: ui/display/chromeos/x11/display_configurator_x11.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
Index: ui/display/chromeos/x11/display_configurator_x11.cc
diff --git a/ui/display/chromeos/x11/display_configurator_x11.cc b/ui/display/chromeos/x11/display_configurator_x11.cc
index 6e4786e8466b6561622cb50c48de9aa461e71c16..e3c2e95122e677b145cf71caeb9140e160703c8e 100644
--- a/ui/display/chromeos/x11/display_configurator_x11.cc
+++ b/ui/display/chromeos/x11/display_configurator_x11.cc
@@ -4,13 +4,14 @@
#include "ui/display/chromeos/display_configurator.h"
+#include "base/memory/ptr_util.h"
#include "ui/display/chromeos/x11/native_display_delegate_x11.h"
namespace ui {
-scoped_ptr<NativeDisplayDelegate>
+std::unique_ptr<NativeDisplayDelegate>
DisplayConfigurator::CreatePlatformNativeDisplayDelegate() {
- return make_scoped_ptr(new NativeDisplayDelegateX11());
+ return base::WrapUnique(new NativeDisplayDelegateX11());
}
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698