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

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

Issue 411273006: Incorporate reset button in post-automatic-reset settings-banner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style nit++ Created 6 years, 5 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/automatic_settings_reset_banner.js
diff --git a/chrome/browser/resources/options/automatic_settings_reset_banner.js b/chrome/browser/resources/options/automatic_settings_reset_banner.js
index 15877ad4b7fdf8d69f24123a2546c291b873813d..09439f53339359a1f4ab258be13b82ca83371e24 100644
--- a/chrome/browser/resources/options/automatic_settings_reset_banner.js
+++ b/chrome/browser/resources/options/automatic_settings_reset_banner.js
@@ -39,6 +39,12 @@ cr.define('options', function() {
chrome.send('metricsHandler:recordAction',
['AutomaticSettingsReset_WebUIBanner_LearnMoreClicked']);
};
+ $('automatic-settings-reset-banner-activate-reset').onclick =
+ function(event) {
+ chrome.send('metricsHandler:recordAction',
+ ['AutomaticSettingsReset_WebUIBanner_ResetClicked']);
+ OptionsPage.navigateToPage('resetProfileSettings');
+ };
},
};

Powered by Google App Engine
This is Rietveld 408576698