bool OmniboxViewViews::SelectionAtEnd() const {
  const gfx::Range sel = GetSelectedRange();
  return sel.GetMin() == text().size();
}

The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.