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

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: '' 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
Index: chrome/browser/search/search.cc
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index ec6b19364a4afaf7880cffb0c95dc5c56fe1502d..384b2e75ce82dc02878e282b9a00e51853d8452f 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 ShouldInstantURLUseProcessPerSite(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;

Powered by Google App Engine
This is Rietveld 408576698