[MacViews] Fix WebViewInteractiveUiTest.TextInputClientIsUpToDate.
commit77ee85a0d3191b91d48d8ec2feb92e1608f1c4bb
authorjackhou <jackhou@chromium.org>
Tue, 10 Mar 2015 19:23:55 +0000 (10 12:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 10 Mar 2015 19:24:38 +0000 (10 19:24 +0000)
tree6b68e9714dd03a044220bbe7aa0ada65d8f8e364
parent101b4cd231701928089bce1defeb8b5b0cd95659
[MacViews] Fix WebViewInteractiveUiTest.TextInputClientIsUpToDate.

This regressed in: https://codereview.chromium.org/975223003/
The DCHECK that causes the test failure is now relaxed to accept a nil
|native_view_|. It was only added as a check that the
NativeViewHost::native_view() doesn't get out of sync, but it's possible
for NativeViewDetaching to be called multiple times.

BUG=415024

Review URL: https://codereview.chromium.org/994103003

Cr-Commit-Position: refs/heads/master@{#319940}
ui/views/controls/native/native_view_host_mac.mm