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

Unified Diff: chrome/browser/ui/search/instant_ntp_prerenderer.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/ui/search/instant_ntp_prerenderer.cc
diff --git a/chrome/browser/ui/search/instant_ntp_prerenderer.cc b/chrome/browser/ui/search/instant_ntp_prerenderer.cc
index a71d123cf0a4039d53e9b048c33853e53c918c66..b38cd68ae11b371d2fce88c40a3b188e9f069494 100644
--- a/chrome/browser/ui/search/instant_ntp_prerenderer.cc
+++ b/chrome/browser/ui/search/instant_ntp_prerenderer.cc
@@ -75,6 +75,10 @@ InstantNTPPrerenderer::~InstantNTPPrerenderer() {
}
void InstantNTPPrerenderer::ReloadInstantNTP() {
+ // Stub out for unit tests that don't run on the UI message loop.
+ if (base::MessageLoop::current()->type() != base::MessageLoop::TYPE_UI)
+ return;
+
ResetNTP(GetInstantURL());
}

Powered by Google App Engine
This is Rietveld 408576698