Commit 8b5e32c6 authored by sky's avatar sky Committed by Commit bot

Moves DCHECK so that it might actually hit

The way the DCHECKs are now we won't know if an associated interface
has been created. By moving the DCHECK earlier on we can know if that
is the cause.

BUG=626869
TEST=none
R=yzshen@chromium.org

Review-Url: https://codereview.chromium.org/2164133002
Cr-Commit-Position: refs/heads/master@{#406685}
parent 698b4583
...@@ -1016,9 +1016,9 @@ void WindowTree::NewTopLevelWindow( ...@@ -1016,9 +1016,9 @@ void WindowTree::NewTopLevelWindow(
uint32_t change_id, uint32_t change_id,
Id transport_window_id, Id transport_window_id,
mojo::Map<mojo::String, mojo::Array<uint8_t>> transport_properties) { mojo::Map<mojo::String, mojo::Array<uint8_t>> transport_properties) {
DCHECK(!waiting_for_top_level_window_info_);
// TODO(sky): rather than DCHECK, have this kill connection. // TODO(sky): rather than DCHECK, have this kill connection.
DCHECK(!window_manager_internal_); // Not valid for the windowmanager. DCHECK(!window_manager_internal_); // Not valid for the windowmanager.
DCHECK(!waiting_for_top_level_window_info_);
const ClientWindowId client_window_id(transport_window_id); const ClientWindowId client_window_id(transport_window_id);
// TODO(sky): need a way for client to provide context to figure out display. // TODO(sky): need a way for client to provide context to figure out display.
Display* display = display_manager()->displays().empty() Display* display = display_manager()->displays().empty()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment