Commit 26870935 authored by tburkard@chromium.org's avatar tburkard@chromium.org

Record whether navigated to URLs are new or repeat URLs in the history.

R=jam@chromium.org

Review URL: https://codereview.chromium.org/23467011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221553 0039d316-1c4b-4281-b951-d872f2087c98
parent e90b52da
...@@ -514,6 +514,12 @@ void PrerenderLocalPredictor::OnAddVisit(const history::BriefVisitInfo& info) { ...@@ -514,6 +514,12 @@ void PrerenderLocalPredictor::OnAddVisit(const history::BriefVisitInfo& info) {
} }
} }
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(); for (std::map<URLID, int>::const_iterator it = next_urls_num_found.begin();
it != next_urls_num_found.end(); it != next_urls_num_found.end();
++it) { ++it) {
......
...@@ -118,6 +118,8 @@ class PrerenderLocalPredictor : public history::VisitDatabaseObserver, ...@@ -118,6 +118,8 @@ class PrerenderLocalPredictor : public history::VisitDatabaseObserver,
EVENT_CONTINUE_PRERENDER_CHECK_ON_SERVICE_WHITELIST = 68, EVENT_CONTINUE_PRERENDER_CHECK_ON_SERVICE_WHITELIST = 68,
EVENT_CONTINUE_PRERENDER_CHECK_EXAMINE_NEXT_URL_LOCAL = 69, EVENT_CONTINUE_PRERENDER_CHECK_EXAMINE_NEXT_URL_LOCAL = 69,
EVENT_CONTINUE_PRERENDER_CHECK_EXAMINE_NEXT_URL_SERVICE = 70, EVENT_CONTINUE_PRERENDER_CHECK_EXAMINE_NEXT_URL_SERVICE = 70,
EVENT_ADD_VISIT_RELEVANT_TRANSITION_REPEAT_URL = 71,
EVENT_ADD_VISIT_RELEVANT_TRANSITION_NEW_URL = 72,
EVENT_MAX_VALUE EVENT_MAX_VALUE
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment