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

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: Move cct hash definition to options::ResetProfileSettingsHandler Created 4 years, 3 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 66a170d44a0ad77c04cf364d5a96dc87d78f9c2f..675d6b92281c3f54341b1f7236b843f41aede0ff 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -798,7 +798,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