Commit bfd7bcf8 authored by Shimi Zhang's avatar Shimi Zhang Committed by Commit Bot

[TTS] Remove redundant condition check

operator bool() and is_bound() are the same for InterfacePtr.

Bug: None
Change-Id: I29e311d6e1f80ba49d3ebc15a0b5ad619aff2621
Reviewed-on: https://chromium-review.googlesource.com/c/1471377Reviewed-by: default avatarDonn Denman <donnd@chromium.org>
Commit-Queue: Donn Denman <donnd@chromium.org>
Commit-Queue: Shimi Zhang <ctzsm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#632040}
parent b02d1cad
......@@ -45,8 +45,7 @@ void OverlayJsRenderFrameObserver::EnableJsApi(bool should_enable) {
}
bool OverlayJsRenderFrameObserver::EnsureServiceConnected() {
if (render_frame() && (!contextual_search_js_api_service_ ||
!contextual_search_js_api_service_.is_bound())) {
if (render_frame() && !contextual_search_js_api_service_) {
render_frame()->GetRemoteInterfaces()->GetInterface(
&contextual_search_js_api_service_);
return true;
......
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