| 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(¶ms)) {
|
| + DCHECK_NE(DISPLAY_CONNECTION_TYPE_NONE, params.type);
|
| displays_.push_back(new DisplaySnapshotProxy(params));
|
| + }
|
| }
|
|
|
| void NativeDisplayDelegateOzone::GrabServer() {
|
|
|