| Index: chrome/browser/prerender/prerender_local_predictor.cc
|
| diff --git a/chrome/browser/prerender/prerender_local_predictor.cc b/chrome/browser/prerender/prerender_local_predictor.cc
|
| index afc1e20dafd5c4f8110111289b1ea20189a2029b..18cbc88ad475bad83d468446939bd59f895dd2f3 100644
|
| --- a/chrome/browser/prerender/prerender_local_predictor.cc
|
| +++ b/chrome/browser/prerender/prerender_local_predictor.cc
|
| @@ -1373,17 +1373,21 @@ void PrerenderLocalPredictor::IssuePrerender(
|
| CandidatePrerenderInfo* info,
|
| LocalPredictorURLInfo* url_info) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + RecordEvent(EVENT_ISSUE_PRERENDER_CALLED);
|
| if (prefetch_list_->AddURL(url_info->url)) {
|
| RecordEvent(EVENT_PREFETCH_LIST_ADDED);
|
| // If we are prefetching rather than prerendering, now is the time to launch
|
| // the prefetch.
|
| if (IsLocalPredictorPrerenderPrefetchEnabled()) {
|
| + RecordEvent(EVENT_ISSUE_PRERENDER_PREFETCH_ENABLED);
|
| // Obtain the render frame host that caused this prefetch.
|
| RenderFrameHost* rfh = RenderFrameHost::FromID(info->render_process_id_,
|
| info->render_frame_id_);
|
| // If it is still alive, launch the prefresh.
|
| - if (rfh)
|
| + if (rfh) {
|
| rfh->Send(new PrefetchMsg_Prefetch(rfh->GetRoutingID(), url_info->url));
|
| + RecordEvent(EVENT_ISSUE_PRERENDER_PREFETCH_ISSUED);
|
| + }
|
| }
|
| }
|
| PrerenderProperties* prerender_properties =
|
|
|