| Index: content/public/test/browser_test_utils.cc
 | 
| diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
 | 
| index 3198c44524a85b4b9c200bdea2270d6497124942..b79334cce691cf94ac3c2398c9a02cb9b17d7cda 100644
 | 
| --- a/content/public/test/browser_test_utils.cc
 | 
| +++ b/content/public/test/browser_test_utils.cc
 | 
| @@ -1529,9 +1529,13 @@ bool InputMsgWatcher::OnMessageReceived(const IPC::Message& message) {
 | 
|    return false;
 | 
|  }
 | 
|  
 | 
| +bool InputMsgWatcher::HasReceivedAck() {
 | 
| +  return ack_result_ != INPUT_EVENT_ACK_STATE_UNKNOWN;
 | 
| +}
 | 
| +
 | 
|  uint32_t InputMsgWatcher::WaitForAck() {
 | 
|    DCHECK_CURRENTLY_ON(BrowserThread::UI);
 | 
| -  if (ack_result_ != INPUT_EVENT_ACK_STATE_UNKNOWN)
 | 
| +  if (HasReceivedAck())
 | 
|      return ack_result_;
 | 
|    base::RunLoop run_loop;
 | 
|    base::AutoReset<base::Closure> reset_quit(&quit_, run_loop.QuitClosure());
 | 
| 
 |