void RedirectNotificationObserver::Wait() {
  if (seen_ && seen_twice_)
    return;

  running_ = true;
  run_loop_.Run();
  EXPECT_TRUE(seen_);
}

The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.