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

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: 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..37ed64161a508f5159970b9975f06ccfb6fa1d3c 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');
+ };
robertshield 2014/07/28 21:09:42 not sure, but seems like this should line up with
gab 2014/07/28 21:22:52 Wasn't sure either but since I indented "function(
Bernhard Bauer 2014/07/28 22:29:38 I think what you do here is indent line 43 four sp
gab 2014/07/29 14:54:40 Okay so just like I have it, but bring the closing
Bernhard Bauer 2014/07/29 15:01:43 Sorry, what I meant was this: $('foo').onclick =
gab 2014/07/29 15:41:55 Ah I see, thanks for clarifying, done!
},
};

Powered by Google App Engine
This is Rietveld 408576698