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

Issue 21121007: Add histograms for session startup enum and number of URLs to open. (Closed)

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

Description

Add histograms for session startup enum and number of URLs to open. This CL adds two histograms to UMA: - Settings.SessionRestoreOnStartup to enumerate page load settings on session startup. - Settings.SessionRestoreOnStartupURLs to record the number of URLs if page load setting is set to load URLs on session startup. BUG=262977 R=battre@chromium.org, bbudge@chromium.org, mpearson@chromium.org, rockot@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214426

Patch Set 1 #

Patch Set 2 : mpearson comments #

Total comments: 11

Patch Set 3 : Fix mpearson comments #

Patch Set 4 : Fix capitalization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M chrome/browser/prefs/pref_metrics_service.cc View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/prefs/session_startup_pref.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
meacer
Sorry for multiple CLs for the same bug. This is the "separate histograms" version of ...
7 years, 4 months ago (2013-07-30 00:42:05 UTC) #1
Ken Rockot(use gerrit already)
On 2013/07/30 00:42:05, Mustafa Emre Acer wrote: > Sorry for multiple CLs for the same ...
7 years, 4 months ago (2013-07-30 01:14:17 UTC) #2
bbudge
I also prefer this one. LGTM
7 years, 4 months ago (2013-07-30 16:55:28 UTC) #3
meacer
Let's go with this one then. Adding OWNERS reviewers: battre: pref_metrics_service.cc mpearson: histograms.xml Thanks.
7 years, 4 months ago (2013-07-30 17:12:59 UTC) #4
Mark P
SessionRestoreOnStartup is a misleading histogram name. Can we do something like StartupSettings or StartupPrefs? You ...
7 years, 4 months ago (2013-07-30 17:19:58 UTC) #5
Mark P
Also, re the 6 in the .cc file: You should add comments somewhere (session_startup_pref.h?) that ...
7 years, 4 months ago (2013-07-30 17:25:21 UTC) #6
battre
I'll just defer my LGTM to Mark to make it easier w.r.t. timezones. I think ...
7 years, 4 months ago (2013-07-30 17:31:53 UTC) #7
meacer
> SessionRestoreOnStartup is a misleading histogram name. Can we do > something like StartupSettings or ...
7 years, 4 months ago (2013-07-30 17:49:08 UTC) #8
Mark P
https://codereview.chromium.org/21121007/diff/10001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/21121007/diff/10001/chrome/browser/prefs/pref_metrics_service.cc#newcode34 chrome/browser/prefs/pref_metrics_service.cc:34: int url_list_size = profile_->GetPrefs()->GetList( nit: const int or use ...
7 years, 4 months ago (2013-07-30 17:56:57 UTC) #9
meacer
Thanks, can you please take another look? https://codereview.chromium.org/21121007/diff/10001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/21121007/diff/10001/chrome/browser/prefs/pref_metrics_service.cc#newcode34 chrome/browser/prefs/pref_metrics_service.cc:34: int url_list_size ...
7 years, 4 months ago (2013-07-30 18:41:50 UTC) #10
Mark P
lgtm
7 years, 4 months ago (2013-07-30 18:48:59 UTC) #11
meacer
On 2013/07/30 18:48:59, Mark P wrote: > lgtm Thanks Mark! Committing soon.
7 years, 4 months ago (2013-07-30 18:50:22 UTC) #12
meacer
7 years, 4 months ago (2013-07-30 20:24:28 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 manually as r214426 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698