Chromium Code Reviews| Index: chrome/browser/instant/search.cc |
| diff --git a/chrome/browser/instant/search.cc b/chrome/browser/instant/search.cc |
| index 2816d5250fcd482487b0feb49968e12830d62cdf..9f491fecbae997ef890b7af0c282269afa4da26b 100644 |
| --- a/chrome/browser/instant/search.cc |
| +++ b/chrome/browser/instant/search.cc |
| @@ -302,7 +302,8 @@ bool NavEntryIsInstantNTP(const content::WebContents* contents, |
| Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext()); |
| return IsInstantExtendedAPIEnabled() && |
| IsRenderedInInstantProcess(contents, profile) && |
| - IsInstantURL(entry->GetVirtualURL(), profile) && |
| + (IsInstantURL(entry->GetVirtualURL(), profile) || |
| + entry->GetVirtualURL() == GURL(chrome::kChromeSearchLocalNTPURL)) && |
|
samarth
2013/03/15 22:14:29
Please add a unit test for the changes in this fil
jeremycho
2013/03/16 00:09:56
Done.
|
| GetSearchTermsImpl(contents, entry).empty(); |
| } |
| @@ -312,7 +313,8 @@ bool ShouldAssignURLToInstantRenderer(const GURL& url, Profile* profile) { |
| (url.SchemeIs(chrome::kChromeSearchScheme) || |
| IsInstantURL(url, profile) || |
| (IsInstantExtendedAPIEnabled() && |
| - url == GURL(kLocalOmniboxPopupURL))); |
| + (url == GURL(kLocalOmniboxPopupURL) || |
| + url == GURL(chrome::kChromeSearchLocalNTPURL)))); |
| } |
| void RegisterUserPrefs(PrefRegistrySyncable* registry) { |