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

Unified Diff: ui/ozone/common/native_display_delegate_ozone.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/ozone/common/native_display_delegate_ozone.cc
diff --git a/ui/ozone/common/native_display_delegate_ozone.cc b/ui/ozone/common/native_display_delegate_ozone.cc
index 24703cd3dd385d76bb5cf7fc3a04a402c993b824..b0a6344dac57ff53f90c20866258ecce04e84131 100644
--- a/ui/ozone/common/native_display_delegate_ozone.cc
+++ b/ui/ozone/common/native_display_delegate_ozone.cc
@@ -5,6 +5,7 @@
#include "ui/ozone/common/native_display_delegate_ozone.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "ui/ozone/common/display_snapshot_proxy.h"
#include "ui/ozone/common/display_util.h"
@@ -20,7 +21,7 @@ void NativeDisplayDelegateOzone::Initialize() {
DisplaySnapshot_Params params;
if (CreateSnapshotFromCommandLine(&params)) {
DCHECK_NE(DISPLAY_CONNECTION_TYPE_NONE, params.type);
- displays_.push_back(make_scoped_ptr(new DisplaySnapshotProxy(params)));
+ displays_.push_back(base::WrapUnique(new DisplaySnapshotProxy(params)));
}
}
« no previous file with comments | « ui/ozone/common/native_display_delegate_ozone.h ('k') | ui/ozone/common/stub_client_native_pixmap_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698