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

Unified Diff: ui/ozone/common/native_display_delegate_ozone.cc

Issue 1438343002: Remove deprecated ScopedVector usage from ui/ozone and ui/events/ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 a7f7d1f900fb0bb1d519ff740f71863e23d67b2a..7dd50377714519806eb59c699094fd5babcd3708 100644
--- a/ui/ozone/common/native_display_delegate_ozone.cc
+++ b/ui/ozone/common/native_display_delegate_ozone.cc
@@ -20,7 +20,7 @@ void NativeDisplayDelegateOzone::Initialize() {
DisplaySnapshot_Params params;
if (CreateSnapshotFromCommandLine(&params)) {
DCHECK_NE(DISPLAY_CONNECTION_TYPE_NONE, params.type);
- displays_.push_back(new DisplaySnapshotProxy(params));
+ displays_.push_back(make_scoped_ptr(new DisplaySnapshotProxy(params)));
}
}
@@ -58,7 +58,10 @@ void NativeDisplayDelegateOzone::ForceDPMSOn() {
void NativeDisplayDelegateOzone::GetDisplays(
const GetDisplaysCallback& callback) {
- callback.Run(displays_.get());
+ std::vector<DisplaySnapshot*> displays;
+ for (const auto& display : displays_)
+ displays.push_back(display.get());
+ callback.Run(displays);
}
void NativeDisplayDelegateOzone::AddMode(const ui::DisplaySnapshot& output,

Powered by Google App Engine
This is Rietveld 408576698