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

Side by Side Diff: chrome/browser/resources/options/reset_profile_settings_overlay.js

Issue 271673006: Eliminate all code related to the AutomaticProfileResetter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments from gab@. Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 7
8 var AutomaticSettingsResetBanner = options.AutomaticSettingsResetBanner; 8 var AutomaticSettingsResetBanner = options.AutomaticSettingsResetBanner;
9 var ResetProfileSettingsBanner = options.ResetProfileSettingsBanner;
10 9
11 /** 10 /**
12 * ResetProfileSettingsOverlay class 11 * ResetProfileSettingsOverlay class
13 * Encapsulated handling of the 'Reset Profile Settings' overlay page. 12 * Encapsulated handling of the 'Reset Profile Settings' overlay page.
14 * @class 13 * @class
15 */ 14 */
16 function ResetProfileSettingsOverlay() { 15 function ResetProfileSettingsOverlay() {
17 OptionsPage.call( 16 OptionsPage.call(
18 this, 'resetProfileSettings', 17 this, 'resetProfileSettings',
19 loadTimeData.getString('resetProfileSettingsOverlayTabTitle'), 18 loadTimeData.getString('resetProfileSettingsOverlayTabTitle'),
(...skipping 19 matching lines...) Expand all
39 [$('send-settings').checked]); 38 [$('send-settings').checked]);
40 }; 39 };
41 $('expand-feedback').onclick = function(event) { 40 $('expand-feedback').onclick = function(event) {
42 var feedbackTemplate = $('feedback-template'); 41 var feedbackTemplate = $('feedback-template');
43 feedbackTemplate.hidden = !feedbackTemplate.hidden; 42 feedbackTemplate.hidden = !feedbackTemplate.hidden;
44 }; 43 };
45 }, 44 },
46 45
47 /** @override */ 46 /** @override */
48 didShowPage: function() { 47 didShowPage: function() {
49 ResetProfileSettingsBanner.dismiss();
50 chrome.send('onShowResetProfileDialog'); 48 chrome.send('onShowResetProfileDialog');
51 }, 49 },
52 50
53 /** @override */ 51 /** @override */
54 didClosePage: function() { 52 didClosePage: function() {
55 chrome.send('onHideResetProfileDialog'); 53 chrome.send('onHideResetProfileDialog');
56 }, 54 },
57 }; 55 };
58 56
59 /** 57 /**
(...skipping 28 matching lines...) Expand all
88 var input = new JsEvalContext(feedbackListData); 86 var input = new JsEvalContext(feedbackListData);
89 var output = $('feedback-template'); 87 var output = $('feedback-template');
90 jstProcess(input, output); 88 jstProcess(input, output);
91 }; 89 };
92 90
93 // Export 91 // Export
94 return { 92 return {
95 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay 93 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay
96 }; 94 };
97 }); 95 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698