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

Unified Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 5254005: Do not reset the content settings delegate's cookies when a network error occurred. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/tab_contents
Patch Set: rebase Created 10 years, 1 month 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 | « no previous file | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_view_host.cc
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc
index 5d3e1fb14973cd44bab97bf5e186bd77a8cf2a97..93abfc6582cc8ea94e13ebcc50cb55bc36bdc1f5 100644
--- a/chrome/browser/renderer_host/render_view_host.cc
+++ b/chrome/browser/renderer_host/render_view_host.cc
@@ -1190,6 +1190,7 @@ void RenderViewHost::OnMsgDidRunInsecureContent(
void RenderViewHost::OnMsgDidStartProvisionalLoadForFrame(int64 frame_id,
bool is_main_frame,
const GURL& url) {
+ bool is_error_page = (url.spec() == chrome::kUnreachableWebDataURL);
GURL validated_url(url);
FilterURL(ChildProcessSecurityPolicy::GetInstance(),
process()->id(), &validated_url);
@@ -1198,7 +1199,7 @@ void RenderViewHost::OnMsgDidStartProvisionalLoadForFrame(int64 frame_id,
delegate_->GetResourceDelegate();
if (resource_delegate) {
resource_delegate->DidStartProvisionalLoadForFrame(
- this, frame_id, is_main_frame, validated_url);
+ this, frame_id, is_main_frame, is_error_page, validated_url);
}
}
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698