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

Issue 2849833002: cros: Add UMA metrics in encryption migration UI. (Closed)

Created:
3 years, 7 months ago by fukino
Modified:
3 years, 7 months ago
Reviewers:
xiyuan, Ilya Sherman
CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, asvitkine+watch_chromium.org, oshima+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Add UMA metrics in encryption migration UI. Some metrics about encryption migration are already recorded in cryptohomed. In this CL, I'd like to add following UI-related UMA metrics on the app. Cryptohome.MigrationUI.FirstScreen Cryptohome.MigrationUI.UserChoice Cryptohome.MigrationUI.ConsumedBatteryPercent BUG=714887 TEST=Disable reboot after the migration by modifying the code, and check that chrome://histograms shows the added metrics. Review-Url: https://codereview.chromium.org/2849833002 Cr-Commit-Position: refs/heads/master@{#468241} Committed: https://chromium.googlesource.com/chromium/src/+/b75aa7267969141e12f5ece554be20d81d39b044

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address review comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -0 lines) Patch
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc View 1 6 chunks +52 lines, -0 lines 2 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
fukino
xiyuan@, could you take a look at the migration UI? isherman@, could you take a ...
3 years, 7 months ago (2017-04-28 12:39:38 UTC) #3
xiyuan
lgtm
3 years, 7 months ago (2017-04-28 16:08:56 UTC) #4
Ilya Sherman
Metrics LGTM % nits: https://codereview.chromium.org/2849833002/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc (right): https://codereview.chromium.org/2849833002/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode60 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:60: enum FirstScreen { Optional nit: ...
3 years, 7 months ago (2017-04-28 21:07:52 UTC) #5
fukino
Thank you for reviews and suggestions! https://codereview.chromium.org/2849833002/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc (right): https://codereview.chromium.org/2849833002/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode60 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:60: enum FirstScreen { ...
3 years, 7 months ago (2017-04-29 14:40:31 UTC) #10
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/2849833002/20001
3 years, 7 months ago (2017-04-29 14:41:24 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/b75aa7267969141e12f5ece554be20d81d39b044
3 years, 7 months ago (2017-04-29 15:17:37 UTC) #16
Ilya Sherman
https://codereview.chromium.org/2849833002/diff/20001/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc (right): https://codereview.chromium.org/2849833002/diff/20001/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode89 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:89: static_cast<int>(UserChoice::USER_CHOICE_COUNT)); nit: FYI, static_casts are no longer needed for ...
3 years, 7 months ago (2017-05-01 18:02:11 UTC) #17
fukino
3 years, 7 months ago (2017-05-02 04:27:34 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/2849833002/diff/20001/chrome/browser/ui/webui...
File
chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc
(right):

https://codereview.chromium.org/2849833002/diff/20001/chrome/browser/ui/webui...
chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:89:
static_cast<int>(UserChoice::USER_CHOICE_COUNT));
On 2017/05/01 18:02:10, Ilya Sherman wrote:
> nit: FYI, static_casts are no longer needed for the UMA_HISTOGRAM_ENUMERATION
> macro when working with enum classes.

Oh, I did not know it. Thanks!
I'll update it in a follow-up patch.

Powered by Google App Engine
This is Rietveld 408576698