Commit 6eaad77d authored by Monica Basta's avatar Monica Basta Committed by Commit Bot

[SyncSetup]: Add user action when the user click save passphrase.

This CL records a user action when the user clicks on save in the
encryption option in chrome://settings/syncSetup to encrypt data with a
custom passphrase. This metric is needed for sync setup friendly
settings.

Bug: 1050070
Change-Id: I3a8b0e5f9ca0e737172ef7b3206828533733e0f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2096738Reviewed-by: default avatarEsmael Elmoslimany <aee@chromium.org>
Reviewed-by: default avatarAlexei Svitkine <asvitkine@chromium.org>
Commit-Queue: Monica Basta <msalama@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749630}
parent 62fad577
...@@ -127,6 +127,7 @@ Polymer({ ...@@ -127,6 +127,7 @@ Polymer({
*/ */
saveNewPassphrase_() { saveNewPassphrase_() {
assert(this.creatingNewPassphrase_); assert(this.creatingNewPassphrase_);
chrome.metricsPrivate.recordUserAction('Sync_SaveNewPassphraseClicked');
// Might happen within the transient time between the request to // Might happen within the transient time between the request to
// |setSyncEncryption| and receiving the response. // |setSyncEncryption| and receiving the response.
if (this.syncPrefs.encryptAllData) { if (this.syncPrefs.encryptAllData) {
......
...@@ -22582,6 +22582,15 @@ should be able to be added at any place in this file. ...@@ -22582,6 +22582,15 @@ should be able to be added at any place in this file.
</description> </description>
</action> </action>
<action name="Sync_SaveNewPassphraseClicked">
<owner>msalama@chromium.org</owner>
<owner>chrome-signin-team@google.com</owner>
<description>
The user has clicked on save in the encryption option section from
chrome://settings/syncSetup to encrypt the data with a custom passphrase.
</description>
</action>
<action name="Sync_SyncEverything"> <action name="Sync_SyncEverything">
<owner>msalama@chromium.org</owner> <owner>msalama@chromium.org</owner>
<owner>chrome-signin-team@google.com</owner> <owner>chrome-signin-team@google.com</owner>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment