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

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: More test fixes. 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 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,

Powered by Google App Engine
This is Rietveld 408576698