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

Unified Diff: chrome/browser/resources/settings/reset_page/reset_profile_dialog.js

Issue 2722083003: MD Settings: Change "view reported settings" string. (Closed)
Patch Set: Add test. Created 3 years, 9 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
Index: chrome/browser/resources/settings/reset_page/reset_profile_dialog.js
diff --git a/chrome/browser/resources/settings/reset_page/reset_profile_dialog.js b/chrome/browser/resources/settings/reset_page/reset_profile_dialog.js
index 5e89ad531d5ae8e4f2b88d9e7e87f66288436eb8..5328fe426527102c0e90f02dd2c70d9af6d3ac16 100644
--- a/chrome/browser/resources/settings/reset_page/reset_profile_dialog.js
+++ b/chrome/browser/resources/settings/reset_page/reset_profile_dialog.js
@@ -75,6 +75,13 @@ Polymer({
this.addEventListener('cancel', function() {
this.browserProxy_.onHideResetProfileDialog();
}.bind(this));
+
+ this.$$('paper-checkbox a').addEventListener(
+ 'tap', this.onShowReportedSettingsTap_.bind(this));
+ // Prevent toggling of the checkbox when hitting the "Enter" key on the
+ // link.
+ this.$$('paper-checkbox a').addEventListener(
+ 'keydown', function(e) { e.stopPropagation(); });
},
/** @private */
@@ -123,9 +130,11 @@ Polymer({
/**
* Displays the settings that will be reported in a new tab.
+ * @param {!Event} e
* @private
*/
- onShowReportedSettingsTap_: function() {
+ onShowReportedSettingsTap_: function(e) {
this.browserProxy_.showReportedSettings();
+ e.stopPropagation();
},
});

Powered by Google App Engine
This is Rietveld 408576698