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

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: 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/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 d25c0c09ee1035a76998491b5ad690ff83cee6e6..788c341ead922bec2fe0bbe03b9c0ee475230c88 100644
--- a/chrome/browser/ui/search/instant_ntp_prerenderer.cc
+++ b/chrome/browser/ui/search/instant_ntp_prerenderer.cc
@@ -74,6 +74,10 @@ InstantNTPPrerenderer::~InstantNTPPrerenderer() {
}
void InstantNTPPrerenderer::ReloadInstantNTP() {
+ // Stub for unit tests.
Jered 2013/10/01 20:57:34 This method isn't tested?
samarth 2013/10/02 00:18:00 No, this is necessary because of a random extensio
+ if (base::MessageLoop::current()->type() != base::MessageLoop::TYPE_UI)
+ return;
+
ResetNTP(GetInstantURL());
}

Powered by Google App Engine
This is Rietveld 408576698