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

Unified Diff: chrome/browser/ui/search/instant_tab.cc

Issue 14043009: Fall back to local page if online NTP fails to load. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 7 years, 8 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_tab.cc
diff --git a/chrome/browser/ui/search/instant_tab.cc b/chrome/browser/ui/search/instant_tab.cc
index 47e4f3d06c4a36073bafbead2b80bf0b91899852..acdaf7fc326f2eed93c8fdf14be3dbbe635f6bf2 100644
--- a/chrome/browser/ui/search/instant_tab.cc
+++ b/chrome/browser/ui/search/instant_tab.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "chrome/browser/ui/search/instant_tab.h"
+#include "content/public/browser/web_contents.h"
InstantTab::InstantTab(InstantPage::Delegate* delegate)
: InstantPage(delegate) {
@@ -13,7 +14,8 @@ InstantTab::~InstantTab() {
void InstantTab::Init(content::WebContents* contents) {
SetContents(contents);
- DetermineIfPageSupportsInstant();
+ if (!contents->IsLoading())
+ DetermineIfPageSupportsInstant();
}
bool InstantTab::ShouldProcessSetSuggestions() {

Powered by Google App Engine
This is Rietveld 408576698