| Index: ash/display/display_layout.cc
|
| diff --git a/ash/display/display_layout.cc b/ash/display/display_layout.cc
|
| index f5aa8f4066ea303ad63c124b57fce10b825ffd85..a3bd093b57ed2d5bcc4fc77b35b22e999734de6e 100644
|
| --- a/ash/display/display_layout.cc
|
| +++ b/ash/display/display_layout.cc
|
| @@ -228,7 +228,8 @@ void DisplayLayout::RegisterJSONConverter(
|
| bool DisplayLayout::Validate(const DisplayIdList& list,
|
| const DisplayLayout& layout) {
|
| // The primary display should be in the list.
|
| - DCHECK(IsIdInList(layout.primary_id, list));
|
| + if (!IsIdInList(layout.primary_id, list))
|
| + return false;
|
|
|
| // Unified mode, or mirror mode switched from unified mode,
|
| // may not have the placement yet.
|
|
|