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

Unified Diff: chrome/browser/resources/sync_setup_overlay.js

Issue 335953002: Add UMA stats for user settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/sync_setup_overlay.html ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/sync_setup_overlay.js
diff --git a/chrome/browser/resources/sync_setup_overlay.js b/chrome/browser/resources/sync_setup_overlay.js
index a44e2bbff64e3686ecdb0deb00f14d7d0c2beb82..51f712a0ef0a3a3f709936d090dfbfe58dbaf52c 100644
--- a/chrome/browser/resources/sync_setup_overlay.js
+++ b/chrome/browser/resources/sync_setup_overlay.js
@@ -116,6 +116,8 @@ cr.define('options', function() {
onEncryptionRadioChanged_: function() {
var visible = $('full-encryption-option').checked;
$('sync-custom-passphrase').hidden = !visible;
+ chrome.send('coreOptionsUserMetricsAction',
+ ['Options_SyncSetEncryption']);
},
/**
@@ -380,6 +382,8 @@ cr.define('options', function() {
*/
handleDataTypeClick_: function() {
dataTypeBoxes_[this.id] = this.checked;
+ chrome.send('coreOptionsUserMetricsAction',
+ ['Options_SyncToggleDataType']);
},
setEncryptionRadios_: function(args) {
@@ -474,6 +478,9 @@ cr.define('options', function() {
},
showSyncEverythingPage_: function() {
+ chrome.send('coreOptionsUserMetricsAction',
+ ['Options_SyncSetDefault']);
+
// Determine whether to bring the OK button into focus.
var wasConfirmPageHidden = !this.confirmPageVisible_;
this.confirmPageVisible_ = true;
@@ -728,6 +735,7 @@ cr.define('options', function() {
*/
showSetupUI_: function() {
chrome.send('SyncSetupShowSetupUI');
+ chrome.send('coreOptionsUserMetricsAction', ['Options_SyncShowAdvanced']);
},
/**
« no previous file with comments | « chrome/browser/resources/sync_setup_overlay.html ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698