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

Issue 21395002: [InstantExtended] Fixing how PageLoadSRP is emitted. Previously it was emitted only for Instant sea… (Closed)

Created:
7 years, 4 months ago by rpetterson
Modified:
7 years, 4 months ago
CC:
chromium-reviews, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -16 lines) Patch
M chrome/browser/autocomplete/autocomplete_input.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_current_page_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/uma_browsing_activity_observer.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/common/metrics/proto/omnibox_event.proto View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
rpetterson
https://codereview.chromium.org/21395002/diff/20001/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://codereview.chromium.org/21395002/diff/20001/chrome/browser/metrics/metrics_service.cc#newcode1526 chrome/browser/metrics/metrics_service.cc:1526: web_contents->GetLastCommittedURL()); My biggest dilemma is here. I have available ...
7 years, 4 months ago (2013-07-31 22:49:21 UTC) #1
Mark P
https://codereview.chromium.org/21395002/diff/20001/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://codereview.chromium.org/21395002/diff/20001/chrome/browser/metrics/metrics_service.cc#newcode1526 chrome/browser/metrics/metrics_service.cc:1526: web_contents->GetLastCommittedURL()); On 2013/07/31 22:49:21, rpetterson wrote: > If I ...
7 years, 4 months ago (2013-07-31 23:16:49 UTC) #2
Peter Kasting
https://codereview.chromium.org/21395002/diff/20001/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://codereview.chromium.org/21395002/diff/20001/chrome/browser/metrics/metrics_service.cc#newcode1526 chrome/browser/metrics/metrics_service.cc:1526: web_contents->GetLastCommittedURL()); On 2013/07/31 22:49:21, rpetterson wrote: > My biggest ...
7 years, 4 months ago (2013-07-31 23:56:51 UTC) #3
rpetterson
Working on a test for this and will respond to comments when I upload it.
7 years, 4 months ago (2013-08-01 01:25:09 UTC) #4
Mark P
By the way, I think Peter is right: * for ClassifyPage, we need to use ...
7 years, 4 months ago (2013-08-01 15:51:33 UTC) #5
rpetterson
On 2013/08/01 15:51:33, Mark P wrote: > By the way, I think Peter is right: ...
7 years, 4 months ago (2013-08-01 18:05:33 UTC) #6
rpetterson
- It looks like LogLoadStarted is not the best place to be logging this information ...
7 years, 4 months ago (2013-08-05 19:46:12 UTC) #7
Mark P
On Mon, Aug 5, 2013 at 12:46 PM, <rlp@chromium.org> wrote: > - It looks like ...
7 years, 4 months ago (2013-08-05 21:43:19 UTC) #8
rlp
That's what the control NavEntryCommitted is for on line 61 of uma_browsing_activity_observer.cc. In talking with ...
7 years, 4 months ago (2013-08-05 23:02:53 UTC) #9
rpetterson
On 2013/08/05 23:02:53, rlp wrote: > That's what the control NavEntryCommitted is for on line ...
7 years, 4 months ago (2013-08-06 18:23:21 UTC) #10
Mark P
This looks like a reasonable approach to me. >>> Mark, please let me know if ...
7 years, 4 months ago (2013-08-06 19:38:35 UTC) #11
Peter Kasting
LGTM with nits. https://codereview.chromium.org/21395002/diff/41001/chrome/browser/autocomplete/autocomplete_input.h File chrome/browser/autocomplete/autocomplete_input.h (right): https://codereview.chromium.org/21395002/diff/41001/chrome/browser/autocomplete/autocomplete_input.h#newcode66 chrome/browser/autocomplete/autocomplete_input.h:66: // The user in a search ...
7 years, 4 months ago (2013-08-06 21:32:19 UTC) #12
rpetterson
Here are fixes to the comments. I'll upload a new version after rebasing but wanted ...
7 years, 4 months ago (2013-08-06 23:04:17 UTC) #13
Mark P
https://codereview.chromium.org/21395002/diff/49002/chrome/browser/search_engines/template_url_service.h File chrome/browser/search_engines/template_url_service.h (right): https://codereview.chromium.org/21395002/diff/49002/chrome/browser/search_engines/template_url_service.h#newcode233 chrome/browser/search_engines/template_url_service.h:233: bool IsSearchResultsPageFromDefaultSearchProvider(const GURL url); consider const GURL& https://codereview.chromium.org/21395002/diff/49002/chrome/browser/ui/uma_browsing_activity_observer.cc File ...
7 years, 4 months ago (2013-08-06 23:17:47 UTC) #14
rpetterson
This also includes the rebase, but turns out that https://codereview.chromium.org/20587003/ isn't through the CQ yet ...
7 years, 4 months ago (2013-08-06 23:41:31 UTC) #15
Mark P
https://codereview.chromium.org/21395002/diff/49002/chrome/browser/ui/uma_browsing_activity_observer.cc File chrome/browser/ui/uma_browsing_activity_observer.cc (right): https://codereview.chromium.org/21395002/diff/49002/chrome/browser/ui/uma_browsing_activity_observer.cc#newcode63 chrome/browser/ui/uma_browsing_activity_observer.cc:63: IsSearchResultsPageFromDefaultSearchProvider( On 2013/08/06 23:41:31, rpetterson wrote: > On 2013/08/06 ...
7 years, 4 months ago (2013-08-06 23:57:17 UTC) #16
rpetterson
https://codereview.chromium.org/21395002/diff/49002/chrome/browser/ui/uma_browsing_activity_observer.cc File chrome/browser/ui/uma_browsing_activity_observer.cc (right): https://codereview.chromium.org/21395002/diff/49002/chrome/browser/ui/uma_browsing_activity_observer.cc#newcode63 chrome/browser/ui/uma_browsing_activity_observer.cc:63: IsSearchResultsPageFromDefaultSearchProvider( On 2013/08/06 23:57:17, Mark P wrote: > On ...
7 years, 4 months ago (2013-08-07 00:18:24 UTC) #17
rpetterson
Now merged with https://codereview.chromium.org/20587003/
7 years, 4 months ago (2013-08-07 17:07:47 UTC) #18
Mark P
lgtm You will need a metrics owners review. (I'm only an owner of histograms.) I'm ...
7 years, 4 months ago (2013-08-07 18:00:08 UTC) #19
rpetterson
On 2013/08/07 18:00:08, Mark P wrote: > lgtm > > You will need a metrics ...
7 years, 4 months ago (2013-08-07 18:38:49 UTC) #20
Mark P
On Wed, Aug 7, 2013 at 11:38 AM, <rlp@chromium.org> wrote: > On 2013/08/07 18:00:08, Mark ...
7 years, 4 months ago (2013-08-07 18:40:23 UTC) #21
rpetterson
So it looks like jar@ and isherman@ are both away for the next week or ...
7 years, 4 months ago (2013-08-07 18:40:58 UTC) #22
rpetterson
Ack! Misread the dates. Fixing :P
7 years, 4 months ago (2013-08-07 18:41:36 UTC) #23
ramant (doing other things)
lgtm
7 years, 4 months ago (2013-08-07 20:07:36 UTC) #24
Mark P
The corresponding google-internal change has landed. I think you have all the necessary approvals for ...
7 years, 4 months ago (2013-08-07 23:30:47 UTC) #25
Ilya Sherman
metrics changes lgtm just in case my rubber stamp is still needed.
7 years, 4 months ago (2013-08-08 07:53:46 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlp@chromium.org/21395002/84013
7 years, 4 months ago (2013-08-08 19:42:51 UTC) #27
commit-bot: I haz the power
7 years, 4 months ago (2013-08-08 23:00:21 UTC) #28
Message was sent while issue was closed.
Change committed as 216469

Powered by Google App Engine
This is Rietveld 408576698