Commit ad080c5f authored by Donn Denman's avatar Donn Denman Committed by Commit Bot

[TTS] Update last assert in CSearchTabHelper

Speculative fix for an assert reported by a developer.
Update an overly aggressive assert recently landed in
ContextualSearchTabHelper when reparenting.

BUG=783225, 775813

Change-Id: Ib8f54e0b5bfcf8dde785e0c25098771b21c1b420
Reviewed-on: https://chromium-review.googlesource.com/764667Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Donn Denman <donnd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#515755}
parent 15e909d6
......@@ -206,7 +206,7 @@ public class ContextualSearchTabHelper
* @param cvc The content view core to attach the gesture state listener to.
*/
private void addContextualSearchHooks(ContentViewCore cvc) {
assert mTab.getContentViewCore() == cvc;
assert mTab.getContentViewCore() == null || mTab.getContentViewCore() == cvc;
ContextualSearchManager contextualSearchManager = getContextualSearchManager(mTab);
if (mGestureStateListener == null && contextualSearchManager != null) {
mGestureStateListener = contextualSearchManager.getGestureStateListener();
......
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