Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6024)

Unified Diff: chrome/browser/search/instant_service.cc

Issue 24733003: Update defaults for InstantExtended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up test. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698