Commit eb328ebe authored by Sara Kato's avatar Sara Kato Committed by Commit Bot

Restore DCHECK in zcr_remote_shell

Change-Id: Ic6be666880d54dba30293c6a4142e4a7a3fe43cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1871789
Commit-Queue: Sara Kato <sarakato@chromium.org>
Auto-Submit: Sara Kato <sarakato@chromium.org>
Reviewed-by: default avatarSara Kato <sarakato@chromium.org>
Reviewed-by: default avatarMitsuru Oshima (slow) <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708456}
parent 0be7b52f
...@@ -1163,9 +1163,10 @@ void remote_shell_get_remote_surface(wl_client* client, ...@@ -1163,9 +1163,10 @@ void remote_shell_get_remote_surface(wl_client* client,
base::BindRepeating(&HandleRemoteSurfaceDragFinishedCallback, base::BindRepeating(&HandleRemoteSurfaceDragFinishedCallback,
base::Unretained(remote_surface_resource))); base::Unretained(remote_surface_resource)));
DCHECK(wl_resource_get_version(remote_surface_resource) >= 23); if (wl_resource_get_version(remote_surface_resource) >= 16) {
shell_surface->set_change_zoom_level_callback( shell_surface->set_change_zoom_level_callback(
shell->CreateChangeZoomLevelCallback(remote_surface_resource)); shell->CreateChangeZoomLevelCallback(remote_surface_resource));
}
SetImplementation(remote_surface_resource, &remote_surface_implementation, SetImplementation(remote_surface_resource, &remote_surface_implementation,
std::move(shell_surface)); std::move(shell_surface));
......
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