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

Unified Diff: trunk/src/content/browser/renderer_host/render_process_host_impl.cc

Issue 280383002: Revert 269855 "Only commit cookie changes in prerenders after a ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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: trunk/src/content/browser/renderer_host/render_process_host_impl.cc
===================================================================
--- trunk/src/content/browser/renderer_host/render_process_host_impl.cc (revision 269877)
+++ trunk/src/content/browser/renderer_host/render_process_host_impl.cc (working copy)
@@ -1711,12 +1711,11 @@
iterator iter(AllHostsIterator());
while (!iter.IsAtEnd()) {
- if (GetContentClient()->browser()->MayReuseHost(iter.GetCurrentValue()) &&
- RenderProcessHostImpl::IsSuitableHost(
+ if (RenderProcessHostImpl::IsSuitableHost(
iter.GetCurrentValue(),
- browser_context, site_url)) {
+ browser_context, site_url))
suitable_renderers.push_back(iter.GetCurrentValue());
- }
+
iter.Advance();
}
@@ -1769,8 +1768,7 @@
std::string site = SiteInstance::GetSiteForURL(browser_context, url)
.possibly_invalid_spec();
RenderProcessHost* host = map->FindProcess(site);
- if (host && (!GetContentClient()->browser()->MayReuseHost(host) ||
- !IsSuitableHost(host, browser_context, url))) {
+ if (host && !IsSuitableHost(host, browser_context, url)) {
// The registered process does not have an appropriate set of bindings for
// the url. Remove it from the map so we can register a better one.
RecordAction(
« no previous file with comments | « trunk/src/chrome/test/data/prerender/prerender_cookie.html ('k') | trunk/src/content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698