| 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 a4300c0c386d826550e28748c55d930e46695dbb..c2f4b86e965b10b7660ea0de6d4f07da7f056447 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());
|
| }
|
|
|
|
|