| Index: chrome/browser/search/instant_service.cc
|
| diff --git a/chrome/browser/search/instant_service.cc b/chrome/browser/search/instant_service.cc
|
| index 7dab79dbb39174a0557e9dabdbb5e5de9e71fe0b..b1c04e777768670d836aac0e259c24963cae2b1a 100644
|
| --- a/chrome/browser/search/instant_service.cc
|
| +++ b/chrome/browser/search/instant_service.cc
|
| @@ -71,7 +71,8 @@ InstantService::InstantService(Profile* profile)
|
| browser_instant_controller_object_count_(0),
|
| weak_ptr_factory_(this) {
|
| // Stub for unit tests.
|
| - if (!BrowserThread::CurrentlyOn(BrowserThread::UI))
|
| + if (!BrowserThread::CurrentlyOn(BrowserThread::UI) ||
|
| + base::MessageLoop::current()->type() != base::MessageLoop::TYPE_UI)
|
| return;
|
|
|
| registrar_.Add(this,
|
|
|