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

Issue 2151413002: Add a UMA histogram for a user's device scale at startup. (Closed)

Created:
4 years, 5 months ago by Bret
Modified:
4 years, 5 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a UMA histogram for a user's device scale at startup. BUG=628038 Committed: https://crrev.com/6b4e59fe3f30bd3d6e035b552facd81a607b6d80 Cr-Commit-Position: refs/heads/master@{#406694}

Patch Set 1 #

Total comments: 4

Patch Set 2 : move metric to dpi.cc #

Total comments: 4

Patch Set 3 : minor edits #

Patch Set 4 : use screen_win instead #

Patch Set 5 : revert dpi.cc #

Total comments: 2

Patch Set 6 : use vector #

Total comments: 2

Patch Set 7 : edit comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M ui/display/win/screen_win.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/display/win/screen_win.cc View 1 2 3 4 5 6 3 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (7 generated)
Bret
4 years, 5 months ago (2016-07-16 00:17:55 UTC) #3
Ilya Sherman
https://codereview.chromium.org/2151413002/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/2151413002/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode282 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:282: 1000.f); nit: I think you want 0 and 1000 ...
4 years, 5 months ago (2016-07-16 00:43:10 UTC) #4
Bret
https://codereview.chromium.org/2151413002/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/2151413002/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode282 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:282: 1000.f); On 2016/07/16 00:43:10, Ilya Sherman wrote: > nit: ...
4 years, 5 months ago (2016-07-16 01:22:35 UTC) #5
Ilya Sherman
LGTM, thanks. https://codereview.chromium.org/2151413002/diff/20001/ui/display/win/dpi.cc File ui/display/win/dpi.cc (right): https://codereview.chromium.org/2151413002/diff/20001/ui/display/win/dpi.cc#newcode11 ui/display/win/dpi.cc:11: #include "base/metrics/histogram.h" nit: You shouldn't need this ...
4 years, 5 months ago (2016-07-16 01:31:24 UTC) #6
Bret
https://codereview.chromium.org/2151413002/diff/20001/ui/display/win/dpi.cc File ui/display/win/dpi.cc (right): https://codereview.chromium.org/2151413002/diff/20001/ui/display/win/dpi.cc#newcode11 ui/display/win/dpi.cc:11: #include "base/metrics/histogram.h" On 2016/07/16 01:31:24, Ilya Sherman wrote: > ...
4 years, 5 months ago (2016-07-18 17:41:48 UTC) #7
oshima
I think you also need to do this for primary in GetMonitorScaleFactor (in screen_win.cc). +robliao@ ...
4 years, 5 months ago (2016-07-18 17:53:41 UTC) #9
Bret
On 2016/07/18 17:53:41, oshima wrote: > I think you also need to do this for ...
4 years, 5 months ago (2016-07-18 17:58:21 UTC) #10
robliao
On 2016/07/18 17:58:21, Bret Sepulveda wrote: > On 2016/07/18 17:53:41, oshima wrote: > > I ...
4 years, 5 months ago (2016-07-18 18:30:21 UTC) #11
Bret
On 2016/07/18 18:30:21, robliao wrote: > On 2016/07/18 17:58:21, Bret Sepulveda wrote: > > On ...
4 years, 5 months ago (2016-07-18 20:19:40 UTC) #12
robliao
On 2016/07/18 20:19:40, Bret Sepulveda wrote: > On 2016/07/18 18:30:21, robliao wrote: > > On ...
4 years, 5 months ago (2016-07-18 20:22:30 UTC) #13
Ilya Sherman
On 2016/07/18 20:19:40, Bret Sepulveda wrote: > On 2016/07/18 18:30:21, robliao wrote: > > On ...
4 years, 5 months ago (2016-07-18 23:01:19 UTC) #14
Bret
On 2016/07/18 23:01:19, Ilya Sherman wrote: > On 2016/07/18 20:19:40, Bret Sepulveda wrote: > > ...
4 years, 5 months ago (2016-07-20 00:00:56 UTC) #15
Ilya Sherman
metrics lgtm
4 years, 5 months ago (2016-07-20 00:14:12 UTC) #16
robliao
https://codereview.chromium.org/2151413002/diff/80001/ui/display/win/screen_win.cc File ui/display/win/screen_win.cc (right): https://codereview.chromium.org/2151413002/diff/80001/ui/display/win/screen_win.cc#newcode555 ui/display/win/screen_win.cc:555: std::set<int> already_reported_scale_factors; Go with an unordered_set or a vector ...
4 years, 5 months ago (2016-07-20 00:58:10 UTC) #17
Bret
https://codereview.chromium.org/2151413002/diff/80001/ui/display/win/screen_win.cc File ui/display/win/screen_win.cc (right): https://codereview.chromium.org/2151413002/diff/80001/ui/display/win/screen_win.cc#newcode555 ui/display/win/screen_win.cc:555: std::set<int> already_reported_scale_factors; On 2016/07/20 00:58:10, robliao wrote: > Go ...
4 years, 5 months ago (2016-07-20 18:59:42 UTC) #18
robliao
lgtm + comment https://codereview.chromium.org/2151413002/diff/100001/ui/display/win/screen_win.cc File ui/display/win/screen_win.cc (right): https://codereview.chromium.org/2151413002/diff/100001/ui/display/win/screen_win.cc#newcode559 ui/display/win/screen_win.cc:559: // it to the backend. Comment ...
4 years, 5 months ago (2016-07-20 19:56:59 UTC) #19
Bret
https://codereview.chromium.org/2151413002/diff/100001/ui/display/win/screen_win.cc File ui/display/win/screen_win.cc (right): https://codereview.chromium.org/2151413002/diff/100001/ui/display/win/screen_win.cc#newcode559 ui/display/win/screen_win.cc:559: // it to the backend. On 2016/07/20 19:56:59, robliao ...
4 years, 5 months ago (2016-07-20 21:03:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151413002/120001
4 years, 5 months ago (2016-07-20 21:03:56 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-20 22:28:29 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 22:34:49 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6b4e59fe3f30bd3d6e035b552facd81a607b6d80
Cr-Commit-Position: refs/heads/master@{#406694}

Powered by Google App Engine
This is Rietveld 408576698