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

Unified Diff: chrome/browser/prerender/prerender_local_predictor.cc

Issue 23467011: Record whether navigated to URLs are new or repeat URLs in the history. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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
« no previous file with comments | « chrome/browser/prerender/prerender_local_predictor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_local_predictor.cc
===================================================================
--- chrome/browser/prerender/prerender_local_predictor.cc (revision 221084)
+++ chrome/browser/prerender/prerender_local_predictor.cc (working copy)
@@ -514,6 +514,12 @@
}
}
+ if (num_occurrences_of_current_visit > 1) {
+ RecordEvent(EVENT_ADD_VISIT_RELEVANT_TRANSITION_REPEAT_URL);
+ } else {
+ RecordEvent(EVENT_ADD_VISIT_RELEVANT_TRANSITION_NEW_URL);
+ }
+
for (std::map<URLID, int>::const_iterator it = next_urls_num_found.begin();
it != next_urls_num_found.end();
++it) {
« no previous file with comments | « chrome/browser/prerender/prerender_local_predictor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698