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

Issue 342053002: Add UMA metrics for Android Chrome Google Search. (Closed)

Created:
6 years, 6 months ago by kmadhusu
Modified:
6 years, 6 months ago
CC:
chromium-reviews, tburkard+watch_chromium.org, gavinp+prer_chromium.org, cbentzel+watch_chromium.org, dominich+watch_chromium.org, davidben+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Add UMA metrics for Android Chrome Google Search. To analyze the impact of prefetching high-confidence search suggestions in Android Chrome, this CL, - Adds a listener for counting Google searches from various search access points. No actual search query content is observed. - Records the search count based on the prerendering settings. (see trybot results in patchset #8). BUG=382694 R=asvitkine@chromium.org, davidben@chromium.org, jam@chromium.org, pkasting@chromium.org, samarth@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278835

Patch Set 1 : '' #

Total comments: 27

Patch Set 2 : Addressed comments #

Patch Set 3 : Removed dupe check and updated omnibox search accesspoint check. #

Total comments: 8

Patch Set 4 : Addressed nits #

Patch Set 5 : Rebase #

Patch Set 6 : Updated histogram name #

Total comments: 4

Patch Set 7 : Rebase + Updated histogram.xml #

Total comments: 4

Patch Set 8 : '' #

Patch Set 9 : Fixed GoogleSearchCounterTest #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -61 lines) Patch
M chrome/browser/chrome_browser_main_android.h View 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_android.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/google/google_search_counter.h View 1 2 3 4 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/google/google_search_counter.cc View 1 2 3 4 3 chunks +36 lines, -41 lines 0 comments Download
A chrome/browser/google/google_search_counter_android.h View 1 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/google/google_search_counter_android.cc View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
M chrome/browser/google/google_search_counter_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 4 2 chunks +15 lines, -15 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M components/google/core/browser/google_search_metrics.h View 2 chunks +9 lines, -0 lines 0 comments Download
M components/google/core/browser/google_search_metrics.cc View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
kmadhusu
pkasting@: Please review. I am still working on unit tests. I would like to get ...
6 years, 6 months ago (2014-06-19 18:47:29 UTC) #1
Peter Kasting
https://codereview.chromium.org/342053002/diff/80001/chrome/browser/chrome_browser_main_android.cc File chrome/browser/chrome_browser_main_android.cc (right): https://codereview.chromium.org/342053002/diff/80001/chrome/browser/chrome_browser_main_android.cc#newcode55 chrome/browser/chrome_browser_main_android.cc:55: void ChromeBrowserMainPartsAndroid::PostProfileInit() { Check with jam@ that this is ...
6 years, 6 months ago (2014-06-19 21:20:33 UTC) #2
kmadhusu
pkasting@: Addressed comments. PTAL. Thanks. https://codereview.chromium.org/342053002/diff/80001/chrome/browser/google/google_search_counter.cc File chrome/browser/google/google_search_counter.cc (right): https://codereview.chromium.org/342053002/diff/80001/chrome/browser/google/google_search_counter.cc#newcode36 chrome/browser/google/google_search_counter.cc:36: // receive two notifications ...
6 years, 6 months ago (2014-06-19 22:52:49 UTC) #3
kmadhusu
jam@: Please review chrome/browser/chrome_browser_main_android.cc changes. Thanks.
6 years, 6 months ago (2014-06-19 22:53:20 UTC) #4
Peter Kasting
https://codereview.chromium.org/342053002/diff/80001/chrome/browser/google/google_search_counter.cc File chrome/browser/google/google_search_counter.cc (right): https://codereview.chromium.org/342053002/diff/80001/chrome/browser/google/google_search_counter.cc#newcode36 chrome/browser/google/google_search_counter.cc:36: // receive two notifications events for the same page. ...
6 years, 6 months ago (2014-06-19 22:58:05 UTC) #5
kmadhusu
https://codereview.chromium.org/342053002/diff/80001/chrome/browser/google/google_search_counter.cc File chrome/browser/google/google_search_counter.cc (right): https://codereview.chromium.org/342053002/diff/80001/chrome/browser/google/google_search_counter.cc#newcode36 chrome/browser/google/google_search_counter.cc:36: // receive two notifications events for the same page. ...
6 years, 6 months ago (2014-06-19 23:21:45 UTC) #6
jam
lgtm
6 years, 6 months ago (2014-06-20 00:20:42 UTC) #7
kmadhusu
I will submit the new tests in a follow up CL. Thanks. https://codereview.chromium.org/342053002/diff/80001/chrome/browser/google/google_search_counter.cc File chrome/browser/google/google_search_counter.cc ...
6 years, 6 months ago (2014-06-20 01:15:07 UTC) #8
kmadhusu
cbentzel@: Please review chrome/browser/prerender/prerender_manager.h changes. asvitkine@: Please review tools/metrics/histograms/histograms.xml changes. Thanks.
6 years, 6 months ago (2014-06-20 01:18:46 UTC) #9
Peter Kasting
LGTM https://codereview.chromium.org/342053002/diff/120001/chrome/browser/google/google_search_counter_android.cc File chrome/browser/google/google_search_counter_android.cc (right): https://codereview.chromium.org/342053002/diff/120001/chrome/browser/google/google_search_counter_android.cc#newcode39 chrome/browser/google/google_search_counter_android.cc:39: const content::NavigationEntry& entry = *commit->entry; Nit: Could just ...
6 years, 6 months ago (2014-06-20 01:23:19 UTC) #10
kmadhusu
Addressed nits. Thanks. https://codereview.chromium.org/342053002/diff/120001/chrome/browser/google/google_search_counter_android.cc File chrome/browser/google/google_search_counter_android.cc (right): https://codereview.chromium.org/342053002/diff/120001/chrome/browser/google/google_search_counter_android.cc#newcode39 chrome/browser/google/google_search_counter_android.cc:39: const content::NavigationEntry& entry = *commit->entry; On ...
6 years, 6 months ago (2014-06-20 01:40:51 UTC) #11
kmadhusu
(FYI) Rebased my changes. r278448 componentized google_util.*. I had to move my new util function ...
6 years, 6 months ago (2014-06-20 03:40:00 UTC) #12
samarth
lgtm
6 years, 6 months ago (2014-06-20 04:31:25 UTC) #13
Alexei Svitkine (slow)
Instead of introducing a new top-level name "AndroidGoogleSearch", I suggest simply logging these as GoogleSearch.AccessPoint_PrerenderDisabled ...
6 years, 6 months ago (2014-06-20 15:07:31 UTC) #14
Alexei Svitkine (slow)
On 2014/06/20 15:07:31, Alexei Svitkine wrote: > Instead of introducing a new top-level name "AndroidGoogleSearch", ...
6 years, 6 months ago (2014-06-20 15:09:39 UTC) #15
samarth
On 2014/06/20 15:09:39, Alexei Svitkine wrote: > On 2014/06/20 15:07:31, Alexei Svitkine wrote: > > ...
6 years, 6 months ago (2014-06-20 15:22:25 UTC) #16
samarth
On 2014/06/20 15:22:25, samarth wrote: > On 2014/06/20 15:09:39, Alexei Svitkine wrote: > > On ...
6 years, 6 months ago (2014-06-20 15:22:51 UTC) #17
Alexei Svitkine (slow)
Does the --prerender=enabled command-line not correctly indicate whether prerender is enabled, then? On Fri, Jun ...
6 years, 6 months ago (2014-06-20 15:25:46 UTC) #18
samarth
Chris will know the details better, but I suspect the command line flag only controls ...
6 years, 6 months ago (2014-06-20 15:30:16 UTC) #19
cbentzel
On 2014/06/20 15:30:16, samarth wrote: > Chris will know the details better, but I suspect ...
6 years, 6 months ago (2014-06-20 15:36:43 UTC) #20
Alexei Svitkine (slow)
All right, thanks for the explanation. It is a bit confusing, when both things use ...
6 years, 6 months ago (2014-06-20 15:39:30 UTC) #21
kmadhusu
Alexei, updated histogram name. PTAL. Thanks.
6 years, 6 months ago (2014-06-20 16:21:26 UTC) #22
cbentzel
+davidben for the prerender changes, he's a better reviewer for this than me now. https://codereview.chromium.org/342053002/diff/230001/chrome/browser/google/google_search_counter_android.cc ...
6 years, 6 months ago (2014-06-20 16:27:11 UTC) #23
cbentzel
+davidben for the prerender changes, he's a better reviewer for this than me now.
6 years, 6 months ago (2014-06-20 16:27:12 UTC) #24
Alexei Svitkine (slow)
https://codereview.chromium.org/342053002/diff/230001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/342053002/diff/230001/tools/metrics/histograms/histograms.xml#newcode8190 tools/metrics/histograms/histograms.xml:8190: +<histogram name="GoogleSearch.AccessPoint_PrerenderDisabled" Nit: Please use the histogram_suffixes feature (see ...
6 years, 6 months ago (2014-06-20 16:27:35 UTC) #25
kmadhusu
cbentzel@: Addressed comments. PTAL. Thanks. https://codereview.chromium.org/342053002/diff/230001/chrome/browser/google/google_search_counter_android.cc File chrome/browser/google/google_search_counter_android.cc (right): https://codereview.chromium.org/342053002/diff/230001/chrome/browser/google/google_search_counter_android.cc#newcode38 chrome/browser/google/google_search_counter_android.cc:38: prerender::PrerenderManager* prerender_manager = On ...
6 years, 6 months ago (2014-06-20 16:42:01 UTC) #26
kmadhusu
asvitkine@: Updated histogram. PTAL. Thanks. https://codereview.chromium.org/342053002/diff/230001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/342053002/diff/230001/tools/metrics/histograms/histograms.xml#newcode8190 tools/metrics/histograms/histograms.xml:8190: +<histogram name="GoogleSearch.AccessPoint_PrerenderDisabled" On 2014/06/20 ...
6 years, 6 months ago (2014-06-20 16:53:26 UTC) #27
Alexei Svitkine (slow)
LGTM % remaining comments https://codereview.chromium.org/342053002/diff/250001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/342053002/diff/250001/tools/metrics/histograms/histograms.xml#newcode8184 tools/metrics/histograms/histograms.xml:8184: + <owner>Please list the metric's ...
6 years, 6 months ago (2014-06-20 16:57:55 UTC) #28
kmadhusu
Thanks. https://codereview.chromium.org/342053002/diff/250001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/342053002/diff/250001/tools/metrics/histograms/histograms.xml#newcode8184 tools/metrics/histograms/histograms.xml:8184: + <owner>Please list the metric's owners. Add more ...
6 years, 6 months ago (2014-06-20 17:06:40 UTC) #29
davidben
chrome/browser/prerender LGTM
6 years, 6 months ago (2014-06-20 17:19:31 UTC) #30
kmadhusu
On 2014/06/20 17:19:31, David Benjamin wrote: > chrome/browser/prerender LGTM Thanks David.
6 years, 6 months ago (2014-06-20 17:21:46 UTC) #31
kmadhusu
The CQ bit was checked by kmadhusu@chromium.org
6 years, 6 months ago (2014-06-20 17:21:57 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/342053002/270001
6 years, 6 months ago (2014-06-20 17:23:31 UTC) #33
kmadhusu
6 years, 6 months ago (2014-06-20 22:32:09 UTC) #34
Message was sent while issue was closed.
Committed patchset #10 manually as r278835 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698