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

Issue 20012003: Add UMA histograms for home page, start page, and DSE hosts. (Closed)

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

Description

Add UMA histograms for home page, start page, and default search engine hosts, as they are set in the Preferences file. This adds histogram enum values for non-prepopulated DSE hosts. The expanded enum is used to log Preferences settings for home page, first start page, and DSE hosts. TBR=battre@chromium.org, meacer@chromium.org, mpearson@chromium.org, rockot@chromium.org BUG=263234 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214498

Patch Set 1 #

Patch Set 2 : Change approach to use PrefMetricService. #

Patch Set 3 : Reuse existing histogram enum for DSE hosts. #

Total comments: 1

Patch Set 4 : Address Ken's comment, guard startup page UMA on restore setting #

Total comments: 4

Patch Set 5 : Canonicalize hosts, enumerate all start pages. #

Total comments: 26

Patch Set 6 : Address Mark's comments. #

Patch Set 7 : Eliminate magic number. #

Total comments: 2

Patch Set 8 : Eliminate duplicate constant. #

Total comments: 5

Patch Set 9 : Remove erroneous domain. #

Total comments: 12

Patch Set 10 : Address Mark's comments. #

Total comments: 2

Patch Set 11 : Tweak comments. #

Patch Set 12 : Rebase to after Mustafa's CL. #

Patch Set 13 : Redo the patch. #

Patch Set 14 : Redo the patch again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -6 lines) Patch
M chrome/browser/prefs/pref_metrics_service.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +126 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/prepopulated_engines.json View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
bbudge
This builds on Ken's CL to collect prefs settings. https://codereview.chromium.org/19776015/ I'll rebase once that lands.
7 years, 5 months ago (2013-07-23 23:19:17 UTC) #1
Mark P
You will need chrome-privacy approval to explicitly log whether users have a relationship to items ...
7 years, 5 months ago (2013-07-23 23:39:16 UTC) #2
bbudge
This is ready for review. The effect of this is to expand the search engine ...
7 years, 5 months ago (2013-07-24 22:00:45 UTC) #3
Ken Rockot(use gerrit already)
LGTM minus factory dependency update https://codereview.chromium.org/20012003/diff/10001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/20012003/diff/10001/chrome/browser/prefs/pref_metrics_service.cc#newcode149 chrome/browser/prefs/pref_metrics_service.cc:149: BrowserContextDependencyManager::GetInstance()) { Because PrefMetricsService ...
7 years, 5 months ago (2013-07-24 22:14:10 UTC) #4
bbudge
+sky for OWNERS review of prepopulated_engines.json.
7 years, 5 months ago (2013-07-24 23:07:09 UTC) #5
meacer
LGTM
7 years, 5 months ago (2013-07-24 23:12:37 UTC) #6
bbudge
Privacy review passed. I still need OWNERS review from battre and mpearson. PTAL
7 years, 5 months ago (2013-07-26 17:06:59 UTC) #7
battre
This does not work, yet. https://codereview.chromium.org/20012003/diff/21001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/20012003/diff/21001/chrome/browser/prefs/pref_metrics_service.cc#newcode113 chrome/browser/prefs/pref_metrics_service.cc:113: int host_id = MapHostToId(host_id_map, ...
7 years, 4 months ago (2013-07-26 19:27:51 UTC) #8
bbudge
https://codereview.chromium.org/20012003/diff/21001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/20012003/diff/21001/chrome/browser/prefs/pref_metrics_service.cc#newcode113 chrome/browser/prefs/pref_metrics_service.cc:113: int host_id = MapHostToId(host_id_map, homepage_url.host()); On 2013/07/26 19:27:51, battre ...
7 years, 4 months ago (2013-07-26 22:13:55 UTC) #9
Mark P
I have lots of comments. I also have a big request. How are you testing ...
7 years, 4 months ago (2013-07-26 23:30:22 UTC) #10
bbudge
As for testing, I've been changing my settings via Chrome's settings page, then printf-debugging. Thanks ...
7 years, 4 months ago (2013-07-27 01:33:00 UTC) #11
battre
https://codereview.chromium.org/20012003/diff/40001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/20012003/diff/40001/chrome/browser/prefs/pref_metrics_service.cc#newcode27 chrome/browser/prefs/pref_metrics_service.cc:27: static const int kMaxHostHistogramValue = 114; What happens if ...
7 years, 4 months ago (2013-07-28 07:57:13 UTC) #12
bbudge
https://codereview.chromium.org/20012003/diff/40001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/20012003/diff/40001/chrome/browser/prefs/pref_metrics_service.cc#newcode27 chrome/browser/prefs/pref_metrics_service.cc:27: static const int kMaxHostHistogramValue = 114; On 2013/07/28 07:57:13, ...
7 years, 4 months ago (2013-07-28 11:22:05 UTC) #13
bbudge
https://codereview.chromium.org/20012003/diff/44001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/20012003/diff/44001/chrome/browser/prefs/pref_metrics_service.cc#newcode62 chrome/browser/prefs/pref_metrics_service.cc:62: AddDomain("deltasearch.com", 104, domain_id_map); whoops, need to remove this.
7 years, 4 months ago (2013-07-29 16:27:16 UTC) #14
battre
lgtm
7 years, 4 months ago (2013-07-29 17:11:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/20012003/51001
7 years, 4 months ago (2013-07-29 19:31:45 UTC) #16
bbudge
Mark, if this looks OK, I need an OWNERS review for histograms.xml and prepopulated_engines.json (I'll ...
7 years, 4 months ago (2013-07-29 20:37:36 UTC) #17
Mark P
https://codereview.chromium.org/20012003/diff/44001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/20012003/diff/44001/chrome/browser/prefs/pref_metrics_service.cc#newcode50 chrome/browser/prefs/pref_metrics_service.cc:50: std::string domain(GetDomain(prepopulated_urls[i]->url_ref().GetHost())); nit: This intermediate variable doesn't buy you ...
7 years, 4 months ago (2013-07-30 15:32:55 UTC) #18
bbudge
Thanks for all the reviewing. PTAL https://codereview.chromium.org/20012003/diff/44001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/20012003/diff/44001/chrome/browser/prefs/pref_metrics_service.cc#newcode50 chrome/browser/prefs/pref_metrics_service.cc:50: std::string domain(GetDomain(prepopulated_urls[i]->url_ref().GetHost())); On ...
7 years, 4 months ago (2013-07-30 18:47:07 UTC) #19
Mark P
lgtm obviously you may need to serialize this change and the other so they patch/apply ...
7 years, 4 months ago (2013-07-30 18:55:25 UTC) #20
Mark P
if you haven't submitted this yet, you might as well make this below change in ...
7 years, 4 months ago (2013-07-30 19:02:37 UTC) #21
bbudge
Tweaked a few comments. Mustafa will land his CL first, then I'll do the merge. ...
7 years, 4 months ago (2013-07-30 19:49:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/20012003/100001
7 years, 4 months ago (2013-07-31 00:39:43 UTC) #23
bbudge
Committed patchset #14 manually as r214498 (presubmit successful).
7 years, 4 months ago (2013-07-31 01:29:42 UTC) #24
commit-bot: I haz the power
7 years, 4 months ago (2013-07-31 01:33:36 UTC) #25
Message was sent while issue was closed.
Failed to trigger a try job on mac_rel
HTTP Error 400: Bad Request

Powered by Google App Engine
This is Rietveld 408576698