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

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

Issue 19872007: Use process per site instance for "Instant". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 5 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
« no previous file with comments | « chrome/browser/search/search.h ('k') | chrome/browser/search/search_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/search.cc
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index ec6b19364a4afaf7880cffb0c95dc5c56fe1502d..883c43ee2ece2e04a97a2e57a4bff8fc2991b7ba 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -296,6 +296,12 @@ bool ShouldAssignURLToInstantRenderer(const GURL& url, Profile* profile) {
IsInstantURL(url, profile));
}
+bool ShouldUseProcessPerSiteForInstantURL(const GURL& url, Profile* profile) {
+ return ShouldAssignURLToInstantRenderer(url, profile) &&
+ (url.host() == chrome::kChromeSearchLocalNtpHost ||
+ url.host() == chrome::kChromeSearchOnlineNtpHost);
+}
+
bool IsInstantNTP(const content::WebContents* contents) {
if (!contents)
return false;
« no previous file with comments | « chrome/browser/search/search.h ('k') | chrome/browser/search/search_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698