Chromium Code Reviews| 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 0d1ab82076d4b4919cc98004016fc8ddd0c19ffc..327fbe0413fb0578ff098959385542576cd57002 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,12 @@ InstantTab::~InstantTab() { |
| void InstantTab::Init(content::WebContents* contents) { |
| SetContents(contents); |
| - DetermineIfPageSupportsInstant(); |
| + if (!contents->IsLoading()) |
|
samarth
2013/05/02 21:57:18
Reading https://code.google.com/p/chromium/codesea
David Black
2013/05/02 23:30:01
Ah, good point. IsWaitingForResponse seems much m
|
| + DetermineIfPageSupportsInstant(); |
| +} |
| + |
| +bool InstantTab::ShouldProcessAboutToNavigateMainFrame() { |
| + return true; |
| } |
| bool InstantTab::ShouldProcessSetSuggestions() { |