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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 16514008: Add metrics for calculating precision/recall of link navigation pre-connect triggers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PostTask Browser thr / add histograms.xml Created 7 years, 6 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: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index 531b382c42151b47fa08afbb80d811ef7065ad4f..8e78e0f26cf8544f22fe8c8043bc07cbae1da62f 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -703,6 +703,7 @@ void ResourceDispatcherHostImpl::DidReceiveRedirect(ResourceLoader* loader,
scoped_ptr<ResourceRedirectDetails> detail(new ResourceRedirectDetails(
loader->request(),
GetCertID(loader->request(), info->GetChildID()),
+ info->GetPageTransition(),
new_url));
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
@@ -733,9 +734,9 @@ void ResourceDispatcherHostImpl::DidReceiveResponse(ResourceLoader* loader) {
return;
// Notify the observers on the UI thread.
+ int cert_id = GetCertID(loader->request(), info->GetChildID());
scoped_ptr<ResourceRequestDetails> detail(new ResourceRequestDetails(
- loader->request(),
- GetCertID(loader->request(), info->GetChildID())));
+ loader->request(), cert_id, info->GetPageTransition()));
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
base::Bind(

Powered by Google App Engine
This is Rietveld 408576698