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

Unified Diff: chrome/browser/resources/options/browser_options.js

Issue 2236663002: Add origin of settings reset request to feedback reports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/options/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index 87fe67040f2629b0acc37badfc47a6ae3f6313a2..85bc5f954170e70e8069a2ca8d7f97386a79be91 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -801,7 +801,11 @@ cr.define('options', function() {
// Reset profile settings section.
$('reset-profile-settings').onclick = function(event) {
- PageManager.showPageByName('resetProfileSettings');
+ // We use the hash to indicate the source of the reset request. The hash
+ // is removed by the reset profile settings overlay once it has been
+ // consumed.
+ PageManager.showPageByName('resetProfileSettings', true,
+ {hash: '#userClick'});
};
// Extension controlled UI.

Powered by Google App Engine
This is Rietveld 408576698