| Index: chrome/browser/search/instant_service.cc
|
| diff --git a/chrome/browser/search/instant_service.cc b/chrome/browser/search/instant_service.cc
|
| index 2ae370d2b9a208b87124a5f9e87615f13047dfc7..38d1532fae72e61eae1e97c97d733b5d78cbbd2b 100644
|
| --- a/chrome/browser/search/instant_service.cc
|
| +++ b/chrome/browser/search/instant_service.cc
|
| @@ -70,7 +70,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,
|
|
|