| Index: chrome/browser/ui/search/instant_ntp_prerenderer.cc
|
| diff --git a/chrome/browser/ui/search/instant_ntp_prerenderer.cc b/chrome/browser/ui/search/instant_ntp_prerenderer.cc
|
| index a71d123cf0a4039d53e9b048c33853e53c918c66..b38cd68ae11b371d2fce88c40a3b188e9f069494 100644
|
| --- a/chrome/browser/ui/search/instant_ntp_prerenderer.cc
|
| +++ b/chrome/browser/ui/search/instant_ntp_prerenderer.cc
|
| @@ -75,6 +75,10 @@ InstantNTPPrerenderer::~InstantNTPPrerenderer() {
|
| }
|
|
|
| void InstantNTPPrerenderer::ReloadInstantNTP() {
|
| + // Stub out for unit tests that don't run on the UI message loop.
|
| + if (base::MessageLoop::current()->type() != base::MessageLoop::TYPE_UI)
|
| + return;
|
| +
|
| ResetNTP(GetInstantURL());
|
| }
|
|
|
|
|