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

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: Rebase. Created 7 years, 2 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 a4300c0c386d826550e28748c55d930e46695dbb..c2f4b86e965b10b7660ea0de6d4f07da7f056447 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