Description[InstantExtended] Fixing how PageLoadSRP is emitted. Previously it was emitted only for Instant search results pages. Now it should be emitted for any search results page.
These fixes include:
- Pull out checking for search results page to its own function, IsSearchResultsPageFromDefaultSearchProvider(url) on the TemplateURLService
- Add IsSearchResultsPage() to OmniboxCurrentPageDelegate to make checking within omnibox code easier
- Add a test for TempalteURL::IsSearchURL which is the heart of the above functions
- Move checking for search results pages from metrics_service.cc to uma_browsing_activity_observer.cc which is a more logical location.
- Listen to notification for NAV_ENTRY_COMMITTED rather than LOAD_STARTED to capture more events. This includes adding a control RecordAction for NAV_ENTRY_COMMITTED so we can differentiate SRP from non-SRP.
Incorporating some of the changes from https://codereview.chromium.org/20043003/ which utilize this functionality. These changes include:
- Add a page classification category for SEARCH_RESULT_PAGE_NO_SEARCH_TERM_REPLACEMENT
- Update the ClassifyPage function using the changes above to determine if search replacement is being done.
- Update the omnibox_event.proto to account for the additional category as well.
Also updates the name of the metrics since the definitions have changed.
BUG=263644, 264067
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216469
Patch Set 1 #Patch Set 2 : cleanup #Patch Set 3 : last upload didn't seem to work #
Total comments: 14
Patch Set 4 : adding test #Patch Set 5 : file should not be in patch #Patch Set 6 : updating test #Patch Set 7 : PageLoad -> NavEntryCommitted #Patch Set 8 : remove unnecessary include #
Total comments: 34
Patch Set 9 : responding to comments #
Total comments: 8
Patch Set 10 : fix formatting. also includes rebase. #Patch Set 11 : fix line indent #Patch Set 12 : rebasing #Patch Set 13 : trying rebase upload again #Patch Set 14 : fixing merge error #Patch Set 15 : this time actually fixing merge error correctly #Messages
Total messages: 28 (0 generated)
|