| Index: chrome/browser/search/instant_service.cc
|
| diff --git a/chrome/browser/search/instant_service.cc b/chrome/browser/search/instant_service.cc
|
| index c50d2716d87d52072854f151e122b3cca84284c1..f05985af1e74659a380ca776644862a1ed90bc56 100644
|
| --- a/chrome/browser/search/instant_service.cc
|
| +++ b/chrome/browser/search/instant_service.cc
|
| @@ -69,7 +69,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,
|
|
|