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

Issue 2910423002: cros: Add UMA metrics in migration UI to get more information from migration failures. (Closed)

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

Description

cros: Add UMA metrics in migration UI to get more information from migration failures. To get more information about migration failures from UMA stats, I'd like to add/update following histograms. 1) Cryptohome.MigrationUI.MigrationResult (new) We'd like to know the migration result, including errors which only Chrome knows (i.e. Chrome failed to mount existing vault) 2) Cryptohome.MigrationUI.RemoveCryptohomeResult (new) Chrome UI code tries to remove the user's cryptohome when migration fails. We'd like to know if the removal succeeds, which we don't have information before. 3) Cryptohome.MigrationUI.VisibleScreen (new) In theory, a screen can be displayed as a flash (especially in shutdown sequence). We'd like to know how many times each screen *actually* gets visible to users. (i.e. displayed at least 1 second.) 4) Cryptohome.MigrationUI.UserChoice (expansion on existing one) We have recorded click events on "Update" and "Skip" button on the migration UI. We'd like to know about other buttons such as "Restart" on error screen, too. BUG=726213 TEST=checked chrome://histograms by disabling auto restart after migration. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2910423002 Cr-Commit-Position: refs/heads/master@{#476592} Committed: https://chromium.googlesource.com/chromium/src/+/4e58ceae8e2e76c9f95b835827b588b4da3810f4

Patch Set 1 #

Patch Set 2 : Add Cryptohome.MigrationUI.ShowFailureScreen. #

Total comments: 10

Patch Set 3 : Use histograms instead of user actions. #

Total comments: 4

Patch Set 4 : Address review comments. #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -23 lines) Patch
M chrome/browser/resources/chromeos/login/encryption_migration.html View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/login/encryption_migration.js View 1 2 3 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_encryption_migration.js View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h View 1 2 3 3 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc View 1 2 3 4 12 chunks +112 lines, -14 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 2 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (23 generated)
fukino
isherman@, could you take a look at histograms/ and how the new histograms are recorded? ...
3 years, 6 months ago (2017-05-31 12:21:29 UTC) #9
Ilya Sherman
Metrics LGTM https://codereview.chromium.org/2910423002/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/2910423002/diff/20001/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode131 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:131: static_cast<int>(MigrationResult::COUNT)); nit: static_casts shouldn't be needed anymore ...
3 years, 6 months ago (2017-05-31 23:34:45 UTC) #14
fukino
Thank! Updated this CL to use histograms instead of user actions for all metrics. https://codereview.chromium.org/2910423002/diff/20001/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc ...
3 years, 6 months ago (2017-06-01 09:28:38 UTC) #15
fukino
isherman@, PTAL at histograms, as I made non-trivial changes. xiyuan@, PTAL at others. dspaid@, Please ...
3 years, 6 months ago (2017-06-01 09:38:26 UTC) #18
xiyuan
lgtm https://codereview.chromium.org/2910423002/diff/40001/chrome/browser/resources/chromeos/login/encryption_migration.html File chrome/browser/resources/chromeos/login/encryption_migration.html (right): https://codereview.chromium.org/2910423002/diff/40001/chrome/browser/resources/chromeos/login/encryption_migration.html#newcode120 chrome/browser/resources/chromeos/login/encryption_migration.html:120: <oobe-text-button inverse on-tap="onRestart_"> nit: onRestart_ -> onRestartOnLowStorage_ similar ...
3 years, 6 months ago (2017-06-01 15:27:16 UTC) #19
Ilya Sherman
Metrics still LGTM (with a nit) https://codereview.chromium.org/2910423002/diff/20001/tools/metrics/histograms/enums.xml File tools/metrics/histograms/enums.xml (right): https://codereview.chromium.org/2910423002/diff/20001/tools/metrics/histograms/enums.xml#newcode23700 tools/metrics/histograms/enums.xml:23700: + Incognito mode"/> ...
3 years, 6 months ago (2017-06-02 00:04:33 UTC) #20
fukino
Thank you for the reviews! https://codereview.chromium.org/2910423002/diff/40001/chrome/browser/resources/chromeos/login/encryption_migration.html File chrome/browser/resources/chromeos/login/encryption_migration.html (right): https://codereview.chromium.org/2910423002/diff/40001/chrome/browser/resources/chromeos/login/encryption_migration.html#newcode120 chrome/browser/resources/chromeos/login/encryption_migration.html:120: <oobe-text-button inverse on-tap="onRestart_"> On ...
3 years, 6 months ago (2017-06-02 03:39:36 UTC) #21
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/2910423002/60001
3 years, 6 months ago (2017-06-02 03:40:12 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/224121) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-02 03:42:38 UTC) #26
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/2910423002/80001
3 years, 6 months ago (2017-06-02 03:47:14 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/229239)
3 years, 6 months ago (2017-06-02 05:15:33 UTC) #31
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/2910423002/80001
3 years, 6 months ago (2017-06-02 06:12:58 UTC) #33
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 06:17:58 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/4e58ceae8e2e76c9f95b835827b5...

Powered by Google App Engine
This is Rietveld 408576698