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

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

Issue 854203002: Read EDID for the 1st display for startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 ac9fb166bb593aa015e53157e684995cd9faf169..7f7e15d1737d73d023e433eab143a0f660d3b176 100644
--- a/ui/ozone/common/native_display_delegate_ozone.cc
+++ b/ui/ozone/common/native_display_delegate_ozone.cc
@@ -17,9 +17,11 @@ NativeDisplayDelegateOzone::~NativeDisplayDelegateOzone() {
}
void NativeDisplayDelegateOzone::Initialize() {
- DisplaySnapshot_Params params = CreateSnapshotFromCommandLine();
- if (params.type != DISPLAY_CONNECTION_TYPE_NONE)
+ DisplaySnapshot_Params params;
+ if (CreateSnapshotFromCommandLine(&params)) {
+ DCHECK_NE(DISPLAY_CONNECTION_TYPE_NONE, params.type);
displays_.push_back(new DisplaySnapshotProxy(params));
+ }
}
void NativeDisplayDelegateOzone::GrabServer() {

Powered by Google App Engine
This is Rietveld 408576698